Tribe__Events__Pro__Main::events_before_html( string $html )

Gets the events_before_html content.


Parameters

$html

(string) (Required) The events_before_html currently.


Top ↑

Return

(string) The modified html.


Top ↑

Source

File: src/Tribe/Main.php

		public function events_before_html( $html ) {
			$wp_query = tribe_get_global_query_object();

			if ( is_null( $wp_query ) ) {
				return $html;
			}

			if ( $wp_query->tribe_is_event_venue || $wp_query->tribe_is_event_organizer ) {
				add_filter( 'tribe-events-bar-should-show', '__return_false' );
			}

			return $html;
		}