Template_Bootstrap::get_template_setting()

Determines, with backwards compatibility in mind, which template user has selected on the Events > Settings page as their base Default template.


Return

(string) Either 'event', 'page' or custom based templates


Top ↑

Source

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

	public function get_template_setting() {
		$template = 'event';
		$default_value = 'default';
		$setting = tribe_get_option( 'tribeEventsTemplate', $default_value );

		if ( $default_value === $setting ) {
			$template = 'page';
		}

		return $template;
	}

Top ↑

Changelog

Changelog
Version Description
5.0.3 specifically pass 'event' to be clearer down the line where we check for custom templates.
4.9.2 Introduced.