Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created July 9, 2019 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/7c55844e47e5952c904fcfb3ee65da05 to your computer and use it in GitHub Desktop.
Save jchristopher/7c55844e47e5952c904fcfb3ee65da05 to your computer and use it in GitHub Desktop.
Prevent WP-Views from overriding SearchWP's results
<?php
// Prevent WP-Views from overriding SearchWP's results.
add_filter( 'wpv_filter_wpv_override_wordpress_archive', function( $wpa_to_apply, $wpa_slug ) {
if ( 'view_search-page' !== $wpa_slug ) {
return $wpa_to_apply;
}
return false;
}, 999, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment