Automattic\WooCommerce\Admin

PageController::is_embed_page()public staticWC 1.0

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

TODO: See usage in admin.php. This needs refactored and implemented properly in core.

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

No Hooks.

Return

null. Nothing.

Usage

$result = PageController::is_embed_page();

Code of PageController::is_embed_page() WC 7.1.0

public static function is_embed_page() {
	return wc_admin_is_connected_page() || ( ! self::is_admin_page() && class_exists( 'Automattic\WooCommerce\Admin\Features\Navigation\Screen' ) && Screen::is_woocommerce_page() );
}