Tribe__Events__Community__Main::fix_pagenum_link( string $result )

Filter pagination links.


Parameters

$result

(string) (Required) The link.


Top ↑

Return

(string) The filtered link.


Top ↑

Source

File: src/Tribe/Main.php

		public function fix_pagenum_link( $result ) {

			// pretty permalinks - fix page one to have args so we don't redirect to todays's page
			if ( '' != get_option( 'permalink_structure' ) && ! strpos( $result, '/page/' ) ) {
				$result = $this->getUrl( 'list', null, 1 );
			}

			// ugly links - fix page one to have args so we don't redirect to todays's page
			if ( '' == get_option( 'permalink_structure' ) && ! strpos( $result, 'paged=' ) ) {
				$result = $this->getUrl( 'list', null, 1 );
			}

			return $result;
		}

Top ↑

Changelog

Changelog
Version Description
1.0 Introduced.