Automattic\WooCommerce\Blocks

Assets::add_theme_body_class()public staticWC 1.0

Deprecated from version 5.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Add body classes.

Method of the class: Assets{}

No Hooks.

Return

Array. Modified array of CSS classnames.

Usage

$result = Assets::add_theme_body_class( $classes );
$classes(array)
Array of CSS classnames.
Default: []

Changelog

Deprecated since 5.0.0

Assets::add_theme_body_class() code WC 8.6.1

public static function add_theme_body_class( $classes = [] ) {
	_deprecated_function( 'Assets::add_theme_body_class', '5.0.0' );
	return $classes;
}