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

Filters the Global Elements 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 Global Elements 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_global_elements_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_global_elements_css_template( $css_template, $section, $customizer );
	}

Top ↑

Changelog #

Changelog
Version Description
5.1.1 Introduced.