WordPress at Your Fingertips
function is not described


Loader::is_admin_page() public WC 1.0

Returns true if we are on a JS powered admin page.

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

No Hooks.


null. Nothing.


$result = Loader::is_admin_page();

Code of Loader::is_admin_page() WC 5.8.0

public static function is_admin_page() {
	// Check the function exists before calling in case WC Admin is disabled. See PR #6563.
	return function_exists( 'wc_admin_is_registered_page' ) && wc_admin_is_registered_page();