Tribe__Events__Community__Main::limitQuery()
Filter the limit query.
Return
(string) The modified query.
Source
File: src/Tribe/Main.php
public function limitQuery() {
global $paged;
if ( $paged - 1 <= 0 ) {
$page = 0;
} else {
$page = $paged - 1;
}
$lq = 'LIMIT ' . ( ( $this->eventsPerPage * $page ) ) . ',' . $this->eventsPerPage;
return $lq;
}
Changelog
| Version | Description |
|---|---|
| 1.0 | Introduced. |