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

searchwp_license_key

Most commonly your license key can be entered in the License area of SearchWP’s settings, but if you have a more systematic approach to implementing SearchWP you can also use this hook to programmatically tell SearchWP your license key.

To utilize this hook, add something like the following to your theme’s functions.php:

<?php
add_filter( 'searchwp_license_key', function(){
return 'MJqNKfmhT3gVG6kpeyjXvM'; // your license key (found on your payment receipt)
});
view raw functions.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