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: 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:

<?php
add_filter( 'searchwp_in_admin', '__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