Tribe__Events__Main::init_admin_list_screen( WP_Screen $screen )

Initializes admin-specific items for the events admin list dashboard page. Hooked to the current_screen action


Parameters

$screen

(WP_Screen) (Required) WP Admin screen object for the current page


Top ↑

Source

File: src/Tribe/Main.php

		public function init_admin_list_screen( $screen ) {
			// If we are dealing with a AJAX call just drop these checks
			if ( ! tribe( 'context' )->doing_ajax() ) {
				if ( 'edit' !== $screen->base ) {
					return;
				}

				if ( self::POSTTYPE !== $screen->post_type ) {
					return;
				}
			}

			Tribe__Events__Admin_List::init();
		}