Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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