Tribe__Events__Community__Main::limitQuery()

Filter the limit query.


Return

(string) The modified query.


Top ↑

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;
		}

Top ↑

Changelog

Changelog
Version Description
1.0 Introduced.