Tribe__Events__Pro__Main::override_listview_display_setting( string $displaying, array $args )

overrides the “displaying” setting of the Tribe__Events__Main instance if we are displaying “all” recurring events”


Parameters

$displaying

(string) (Required) The current eventDisplay value

$args

(array) (Required) get_event args used to fetch events that are visible in the ajax rendered listview


Top ↑

Return

(string)


Top ↑

Source

File: src/Tribe/Main.php

		public function override_listview_display_setting( $displaying, $args ) {
			if ( empty( $args['post_parent'] ) ) {
				return $displaying;
			}

			return 'all';
		}//end override_listview_display_setting