WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks

AssetsController::add_theme_body_class() public WC 1.0

Add body classes to the frontend and within admin.

{} It's a method of the class: AssetsController{}

No Hooks.

Return

String|Array. Modified classnames.

Usage

$AssetsController = new AssetsController();
$AssetsController->add_theme_body_class( $classes );
$classes(string|array) (required)
Array or string of CSS classnames.

Code of AssetsController::add_theme_body_class() WC 5.6.0

public function add_theme_body_class( $classes ) {
	$class = 'theme-' . get_template();

	if ( is_array( $classes ) ) {
		$classes[] = $class;
	} else {
		$classes .= ' ' . $class . ' ';
	}

	return $classes;
}