Automattic\WooCommerce\Internal\Features\OrderDetailRedesign

Init::handle_admin_body_classpublicWC 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.

Method of the class: Init{}

No Hooks.

Returns

String.

Usage

$Init = new Init();
$Init->handle_admin_body_class( $classes ): string;
$classes(string) (required)
Existing space-separated body classes.

Init::handle_admin_body_class() code WC 10.9.3

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