Tribe__Events__Pro__Assets::override_style_exists()

Check if the override stylesheet exists.


Return

(bool)


Top ↑

Source

File: src/Tribe/Assets.php

	public function override_style_exists(): bool {
		_deprecated_function( __METHOD__, '7.0.1', 'Tribe__Events__Pro__Assets::should_enqueue_frontend' );
		// This is a frontend script, let's bail early if we can.
		if ( ! $this->should_enqueue_frontend() ) {
			return false;
		}

		$file = Tribe__Events__Templates::locate_stylesheet( 'tribe-events/pro/tribe-events-pro.css' );
		return $file && file_exists( $file );
	}

Top ↑

Changelog

Changelog
Version Description
7.0.0 Introduced.