SearchWP

This Documentation is for SearchWP Version 3

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
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]