Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 22, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchristopher/e0c1960c3f49a2503864 to your computer and use it in GitHub Desktop.
Save jchristopher/e0c1960c3f49a2503864 to your computer and use it in GitHub Desktop.
Modify the LIMIT start of the SearchWP query
<?php
function my_searchwp_query_limit_start( $start, $page, $engine ) {
if ( 'default' == $engine && 10 == $page ) {
$start = 100;
}
return $start;
}
add_fitler( 'searchwp_query_limit_start', 'my_searchwp_query_limit_start', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment