Automattic\WooCommerce\Internal\Features\OrderDetailRedesign

Init::handle_admin_body_class │ public │ WC 1.0

Adds the feature body class to every admin page while the feature is enabled.

Screen-level scoping is handled by the CSS selectors, which chain this class with the WP-provided page classes (.woocommerce_page_wc-orders, .post-type-shop_order) and qualifiers like :has(#poststuff) so the styles only apply on the actual order edit/new screens.

Метод класса: Init{}

Хуков нет.

Возвращает

string.

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

$Init = new Init();
$Init->handle_admin_body_class( $classes ): string;
$classes(строка) (обязательный)
Existing space-separated body classes.

Код Init::handle_admin_body_class() WC 11.3.0

public function handle_admin_body_class( string $classes ): string {
	return $classes . ' woocommerce-feature-enabled-' . self::FEATURE_ID;
}