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


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

Available since: 2.0.2


View Parameters »

In order to access search statistics provided by SearchWP, users will need a capability of publish_posts by default. If you would like to change which capability is used for this restriction, add something like the following to your theme’s functions.php:

function my_searchwp_statistics_cap( $capability ) {
return 'manage_options'; // only Administrators
add_filter( 'searchwp_statistics_cap', 'my_searchwp_statistics_cap' );
view raw gistfile1.php hosted with ❤ by GitHub


Parameter Type Description
$capability String

The capability necessary to have access to statistics (default is publish_posts)

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