Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Use the searchwp_term_archive_enabled filter in the SearchWP Term Archive Priority Extension to specify which supplemental search engines should include term archive pages at the top of search results
<?php
function my_maybe_include_term_archive( $include, $engine, $terms ) {
// only have term archives included for supplemental search engine with name 'supplemental'
return ( $engine == 'supplemental' ) ? true : false;
}
add_filter( 'searchwp_term_archive_enabled', 'my_maybe_include_term_archive', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.