Created
March 26, 2020 13:58
-
-
Save jchristopher/11ec5924dc36696001479cf0d257edbb to your computer and use it in GitHub Desktop.
Add Synonym to existing Synonyms 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 | |
// Add Synonym to existing Synonyms in SearchWP. | |
add_filter( 'searchwp\synonyms', function( $synonyms, $args ) { | |
$synonyms[] = [ | |
'sources' => 'seo', | |
'synonyms' => 'search engine optimization', | |
'replace' => false, | |
]; | |
return $synonyms; | |
}, 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment