WordPress at Your Fingertips
function is not described

WC_Admin_Addons::filter_admin_body_classes() public WC 1.0

We're displaying page=wc-addons and page=wc-addons§ion=helper as two separate pages. When we're on those pages, add body classes to distinguishe them.

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

No Hooks.

Return

String. Body class with added class for Marketplace or My Subscriptions page.

Usage

$result = WC_Admin_Addons::filter_admin_body_classes( $admin_body_class ): string;
$admin_body_class(string)
Unfiltered body class.
Default: ''

Code of WC_Admin_Addons::filter_admin_body_classes() WC 5.9.0

public static function filter_admin_body_classes( string $admin_body_class = '' ): string {
	if ( isset( $_GET['section'] ) && 'helper' === $_GET['section'] ) {
		return " $admin_body_class woocommerce-page-wc-subscriptions ";
	}

	return " $admin_body_class woocommerce-page-wc-marketplace ";
}