Available since: 1.0
searchwp_in_admin
Out of the box SearchWP only hijacks WordPress native searches on the front end of your website, not in the WordPress administration area. This filter allows you to change that.
Example: If you want to have SearchWP also hijack searches in the WordPress admin, add the following to your active theme’s functions.php
:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'searchwp_in_admin', '__return_true' ); |