Created
April 18, 2019 13:41
-
-
Save jchristopher/85e7cd4d1b9869e9affa18eafb666c4f to your computer and use it in GitHub Desktop.
Prevent SearchWP from accepting an orderby query parameter
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 SearchWP from accepting an orderby query parameter. | |
add_filter( 'searchwp_query_allow_query_string_override_orderby', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment