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:
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_license_key', function(){ | |
return 'MJqNKfmhT3gVG6kpeyjXvM'; // your license key (found on your payment receipt) | |
}); |