Hooks::filter_single_event_css_template( string $css_template, Tribe__Customizer__Section $section, Tribe__Customizer $customizer )

Filters the Single Event section CSS template to add Views v2 related style templates to it.


Parameters #

$css_template

(string) (Required) The CSS template, as produced by the Global Elements.

$section

(Tribe__Customizer__Section) (Required) The Single Event section.

$customizer

(Tribe__Customizer) (Required) The current Customizer instance.


Top ↑

Return #

(string) The filtered CSS template.


Top ↑

Source #

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

	public function filter_single_event_css_template( $css_template, $section, $customizer ) {
		if ( ! (
			is_string( $css_template ) && $section instanceof Customizer_Section
			&& $customizer instanceof \Tribe__Customizer
		)
		) {
			return $css_template;
		}

		return $this->container->make( Customizer::class )->filter_single_event_css_template( $css_template, $section, $customizer );
	}

Top ↑

Changelog #

Changelog
Version Description
4.8.3 Introduced.