Tribe__Events__Community__Main::fix_pagenum_link( string $result )
Filter pagination links.
Contents
Parameters
- $result
-
(string) (Required) The link.
Return
(string) The filtered link.
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;
}
Changelog
| Version | Description |
|---|---|
| 1.0 | Introduced. |