Skip to content

Instantly share code, notes, and snippets.

Last active December 21, 2015 14:28
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
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