Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Manipulate the offset used during a SearchWP search
function my_searchwp_query_offset( $offset, $engine, $terms, $paged ) {
// manipulate the offset in any way you'd like
return $offset;
add_filter( 'searchwp_query_offset', 'my_searchwp_query_offset', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment