Tribe__Events__Templates::needs_compatibility_fix( string $theme = null )

Checks if theme needs a compatibility fix


Parameters

$theme

(string) (Optional) Name of template from WP_Theme->Template, defaults to current active template

Default value: null


Top ↑

Return

(mixed)


Top ↑

Source

File: src/Tribe/Templates.php

		public static function needs_compatibility_fix ( $theme = null ) {
			// Defaults to current active theme
			if ( $theme === null ) {
				$theme = get_stylesheet();
			}

			$theme_compatibility_list = apply_filters( 'tribe_themes_compatibility_fixes', self::$themes_with_compatibility_fixes );

			return in_array( $theme, $theme_compatibility_list );
		}