Modify the LIMIT total of SearchWP searches
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 | |
function my_searchwp_query_limit_total( $total, $page, $engine ) { | |
if ( 'default' == $engine && 10 == $page ) { | |
$total = 100; | |
} | |
return $total; | |
} | |
add_fitler( 'searchwp_query_limit_total', 'my_searchwp_query_limit_total', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ran into the same typo when I got an error 500 after implementing this filter. Just a friendly notice.