Tribe__Events__Community__Main::maybeRedirectMyEvents()

Determine whether to redirect a user back to his events.


Return

(void)


Top ↑

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

Top ↑

Changelog

Changelog
Version Description
1.0 Introduced.