Tribe__Events__Community__Main::maybeRedirectMyEvents()
Determine whether to redirect a user back to his events.
Return
(void)
Source
File: src/Tribe/Main.php
public function maybeRedirectMyEvents() { if ( ! is_admin() ) { //redirect my events with no args to todays page global $paged; if ( empty( $paged ) && isset( $_GET['tribe_action'] ) && $_GET['tribe_action'] == 'list' ) { $paged = 1; wp_safe_redirect( esc_url_raw( $this->getUrl( 'list', null, $paged ) ) ); exit; } } }
Changelog
Version | Description |
---|---|
1.0 | Introduced. |