Created
August 14, 2019 19:21
-
-
Save jchristopher/a1078fa5a235bd3622efe53ae47a542f to your computer and use it in GitHub Desktop.
Customize the keywords used by SearchWP Related
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_filter( 'searchwp_related_keywords', function( $terms, $post_id ) { | |
// $terms is what's currently stored as the keywords. | |
// TODO: Customize $terms to be the string of terms you _want_ to use. | |
return $terms; | |
}, 21, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment