Skip to content

Instantly share code, notes, and snippets.

@hilja
Created April 6, 2017 19:50
Show Gist options
  • Save hilja/680424bcae5b429b1841bdc71621f723 to your computer and use it in GitHub Desktop.
Save hilja/680424bcae5b429b1841bdc71621f723 to your computer and use it in GitHub Desktop.
// Seach WP posts per page
add_filter('searchwp_posts_per_page', function($posts_per_page, $engine, $terms, $page) {
return 20;
}, 99, 99);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment