Automattic\WooCommerce\Admin

Loader::is_admin_or_embed_pagepublic staticWC 1.0

Deprecated since 6.3.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

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: Loader{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Loader::is_admin_or_embed_page();

Changelog

Deprecated since 6.3.0

Loader::is_admin_or_embed_page() code WC 9.8.5

public static function is_admin_or_embed_page() {
	wc_deprecated_function( 'is_admin_or_embed_page', '6.3', '\Automattic\WooCommerce\Admin\PageController::is_admin_or_embed_page()' );
	return PageController::is_admin_or_embed_page();
}