Automattic\WooCommerce\Admin

PageController::is_admin_or_embed_page()public staticWC 1.0

Returns true if we are on a JS powered admin page or a "classic" (non JS app) powered admin page (an embedded page).

Method of the class: PageController{}

No Hooks.

Return

null. Nothing.

Usage

$result = PageController::is_admin_or_embed_page();

PageController::is_admin_or_embed_page() code WC 7.1.0

public static function is_admin_or_embed_page() {
	return self::is_admin_page() || self::is_embed_page();
}