Created
July 9, 2019 15:57
-
-
Save jchristopher/7c55844e47e5952c904fcfb3ee65da05 to your computer and use it in GitHub Desktop.
Prevent WP-Views from overriding SearchWP's results
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 | |
// 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