Theme_Compatibility::filter_add_body_classes( array $classes )
Add the theme to the body class.
Contents
Parameters
- $classes
-
(array) (Required) Classes that are been passed to the body.
Return
(array) $classes
Source
File: src/Tribe/Views/V2/Theme_Compatibility.php
public function filter_add_body_classes( array $classes ) {
if ( ! tribe( Template_Bootstrap::class )->should_load() ) {
return $classes;
}
if ( ! $this->is_compatibility_required() ) {
return $classes;
}
return array_merge( $classes, $this->get_body_classes() );
}
Changelog
| Version | Description |
|---|---|
| 4.9.3 | Introduced. |