Hooks::body_class( TribeEventsViewsV2Customizerarray $classes )
Add an identifying class to the body – but only when inside the Customizer preview.
Contents
Parameters
- $classes
-
(<span class="TribeEventsViewsV2Customizerarray">TribeEventsViewsV2Customizerarray) (Required) The list of body classes to be applied.
Return
(TribeEventsViewsV2Customizerarray<string>) $classes The modified list of body classes to be applied.
Source
File: src/Tribe/Views/V2/Customizer/Hooks.php
public function body_class( $classes ) {
if ( is_customize_preview() ) {
$classes[] = 'tec-customizer';
}
return $classes;
}
Changelog
| Version | Description |
|---|---|
| 5.11.0 | Introduced. |