SearchWP

This Documentation is for SearchWP Version 3

Available since: 1.0.8

searchwp_query_limit_total

View Parameters »

SearchWP handles pagination internally but if you would like to overwrite the LIMIT total parameter you can use this hook like so:

<?php
function my_searchwp_query_limit_total( $total, $page, $engine ) {
if ( 'default' == $engine && 10 == $page ) {
$total = 100;
}
return $total;
}
add_fitler( 'searchwp_query_limit_total', 'my_searchwp_query_limit_total', 10, 3 );
view raw gistfile1.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$total Integer

The LIMIT total

$page Integer

The current page

$engine String

The engine in use

[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]