Created
March 27, 2020 12:30
-
-
Save jchristopher/771d29d07c96827f5b487e2eca89ac71 to your computer and use it in GitHub Desktop.
Return 12 results per page of SearchWP 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 | |
// Return 12 results per page of SearchWP results. | |
add_filter( 'searchwp\query\per_page', function( $per_page, $args ) { | |
return 12; | |
}, 30, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment