Created
March 26, 2020 17:41
-
-
Save jchristopher/9f78621bd1c2cc3925d513aaca941253 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