Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created March 26, 2020 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/9f78621bd1c2cc3925d513aaca941253 to your computer and use it in GitHub Desktop.
Save jchristopher/9f78621bd1c2cc3925d513aaca941253 to your computer and use it in GitHub Desktop.
Remove company name from tokens in SearchWP
<?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