/** * Initializes admin-specific items for the events admin list dashboard page. Hooked to the * current_screen action * * @param WP_Screen $screen WP Admin screen object for the current page */ public function init_admin_list_screen($screen) { if ('edit' !== $screen->base) { return; } if (self::POSTTYPE !== $screen->post_type) { return; } Tribe__Events__Admin_List::init(); }
/** * Initializes admin-specific items for the events admin list dashboard page. Hooked to the * current_screen action * * @param WP_Screen $screen WP Admin screen object for the current page */ public function init_admin_list_screen($screen) { // If we are dealing with a AJAX call just drop these checks if (!Tribe__Main::instance()->doing_ajax()) { if ('edit' !== $screen->base) { return; } if (self::POSTTYPE !== $screen->post_type) { return; } } Tribe__Events__Admin_List::init(); }