-
-
Save searchwpgists/432f9a3bb9f10b630f455f680744e263 to your computer and use it in GitHub Desktop.
Remove company name from tokens in SearchWP
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 | |
// Remove company name "ACME" from tokens in SearchWP. | |
add_filter( 'searchwp\tokens', function( $tokens ) { | |
return array_filter( $tokens, function( $token ) { | |
return 'ACME' !== $token; | |
} ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment