Theme_Compatibility::filter_add_body_classes( array $classes )

Add the theme to the body class.


Parameters

$classes

(array) (Required) Classes that are been passed to the body.


Top ↑

Return

(array) $classes


Top ↑

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() );
	}

Top ↑

Changelog

Changelog
Version Description
4.9.3 Introduced.