Hooks::body_class( TribeEventsViewsV2Customizerarray $classes )

Add an identifying class to the body – but only when inside the Customizer preview.


Parameters

$classes

(<span class="TribeEventsViewsV2Customizerarray">TribeEventsViewsV2Customizerarray) (Required) The list of body classes to be applied.


Top ↑

Return

(TribeEventsViewsV2Customizerarray<string>) $classes The modified list of body classes to be applied.


Top ↑

Source

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

	public function body_class( $classes ) {
		if ( is_customize_preview() ) {
			$classes[] = 'tec-customizer';
		}

		return $classes;
	}

Top ↑

Changelog

Changelog
Version Description
5.11.0 Introduced.