Automattic\WooCommerce\Admin
PageController::is_admin_page()
Returns true if we are on a JS powered admin page.
{} It's a method of the class: PageController{}
No Hooks.
Return
null
. Nothing.
Usage
$result = PageController::is_admin_page();
Code of PageController::is_admin_page() PageController::is admin page WC 6.6.1
public static function is_admin_page() { // phpcs:disable WordPress.Security.NonceVerification return isset( $_GET['page'] ) && 'wc-admin' === $_GET['page']; // phpcs:enable WordPress.Security.NonceVerification }