Hooks::action_initialize_legacy_views()

Initializes the legacy Views for Single and Embed.

Contents


Source

File: src/Tribe/Views/V2/Hooks.php

	public function action_initialize_legacy_views() {
		if ( tribe( Template_Bootstrap::class )->is_single_event() ) {
			new \Tribe__Events__Template__Single_Event();
		} elseif ( is_embed() || 'embed' === tribe( 'context' )->get( 'view' ) ) {
			new \Tribe__Events__Template__Embed();
		}
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.