Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 2.0

searchwp_nuke_on_delete

By default, SearchWP will not clean up after itself (e.g. purge the index and remove all traces of itself) when deactivated or deleted in the WordPress Admin unless you enable the Nuke on Delete option in the Advanced settings.

If you are building a lot of sites and find it cumbersome to tick that checkbox every time you set up a new site, you can force Nuke on Delete by adding the following to your theme’s functions.php:

<?php
add_filter( 'searchwp_nuke_on_delete', '__return_true' );
view raw gistfile1.php hosted with ❤ by GitHub
Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP