Created
March 20, 2015 17:04
-
-
Save jchristopher/97d2455f5a78bfd17908 to your computer and use it in GitHub Desktop.
Customize the number of results in SearchWP Live Ajax Search
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_live_search_posts_per_page() { | |
return 20; // return 20 results | |
} | |
add_filter( 'searchwp_live_search_posts_per_page', 'my_searchwp_live_search_posts_per_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment