-
-
Save searchwpgists/b9525bd3108d7c4a03c337857d43f201 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