Tell SearchWP to only consider the title and main content when performing AND checks
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 | |
function my_searchwp_and_fields() { | |
return array( 'title', 'content' ); | |
} | |
add_filter( 'searchwp_and_fields', 'my_searchwp_and_fields' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment