WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin

Loader::add_admin_body_classes() public WC 1.0

Adds body classes to the main wp-admin wrapper, allowing us to better target elements in specific scenarios.

{} Это метод класса: Loader{}

Хуки из метода
Возвращает

Null. Ничего.

Использование

$result = Loader::add_admin_body_classes( $admin_body_class );
$admin_body_class(строка)
Body class to add.
По умолчанию: ''

Код Loader::add_admin_body_classes() WC 4.7.0

<?php
public static function add_admin_body_classes( $admin_body_class = '' ) {
	if ( ! self::is_admin_or_embed_page() ) {
		return $admin_body_class;
	}

	$classes   = explode( ' ', trim( $admin_body_class ) );
	$classes[] = 'woocommerce-page';
	if ( self::is_embed_page() ) {
		$classes[] = 'woocommerce-embed-page';
	}

	/**
	 * Some routes or features like onboarding hide the wp-admin navigation and masterbar.
	 * Setting `woocommerce_admin_is_loading` to true allows us to premeptively hide these
	 * elements while the JS app loads.
	 * This class needs to be removed by those feature components (like <ProfileWizard />).
	 *
	 * @param bool $is_loading If WooCommerce Admin is loading a fullscreen view.
	 */
	$is_loading = apply_filters( 'woocommerce_admin_is_loading', false );

	if ( self::is_admin_page() && $is_loading ) {
		$classes[] = 'woocommerce-admin-is-loading';
	}

	$features = self::get_features();
	foreach ( $features as $feature_key ) {
		$classes[] = sanitize_html_class( 'woocommerce-feature-enabled-' . $feature_key );
	}

	$admin_body_class = implode( ' ', array_unique( $classes ) );
	return " $admin_body_class ";
}