Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Automattic\WooCommerce\Admin; use Automattic\WooCommerce\Admin\Features\N..

Decoded Output download

<?php
 namespace Automattic\WooCommerce\Admin; use Automattic\WooCommerce\Admin\Features\Navigation\Screen; use Automattic\WooCommerce\Internal\Admin\Loader; defined("ABSPATH") || die; class PageController { const APP_ENTRY_POINT = "wc-admin"; const PAGE_ROOT = "wc-admin"; private static $instance = false; private $current_page = null; private $pages = array(); public static function get_instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; } public function __construct() { add_action("admin_menu", array($this, "register_page_handler")); add_action("admin_menu", array($this, "register_store_details_page")); add_action("admin_head", array($this, "remove_app_entry_page_menu_item"), 20); } public function connect_page($options) { if (!is_array($options["title"])) { $options["title"] = array($options["title"]); } $options = apply_filters("woocommerce_navigation_connect_page_options", $options); $this->pages[$options["id"]] = $options; } public function determine_current_page() { $current_url = ''; $current_screen_id = $this->get_current_screen_id(); if (isset($_SERVER["REQUEST_URI"])) { $current_url = esc_url_raw(wp_unslash($_SERVER["REQUEST_URI"])); } $current_query = wp_parse_url($current_url, PHP_URL_QUERY); parse_str((string) $current_query, $current_pieces); $current_path = empty($current_pieces["page"]) ? '' : $current_pieces["page"]; $current_path .= empty($current_pieces["path"]) ? '' : "&path=" . $current_pieces["path"]; foreach ($this->pages as $page) { if (isset($page["js_page"]) && $page["js_page"]) { if ($page["path"] === $current_path) { $this->current_page = $page; return; } } else { if (isset($page["screen_id"]) && $page["screen_id"] === $current_screen_id) { $this->current_page = $page; return; } } } $this->current_page = false; } public function get_breadcrumbs() { $current_page = $this->get_current_page(); if (false === $current_page) { return apply_filters("woocommerce_navigation_get_breadcrumbs", array(''), $current_page); } $page_title = !empty($current_page["page_title"]) ? $current_page["page_title"] : $current_page["title"]; $page_title = (array) $page_title; if (1 === count($page_title)) { $breadcrumbs = $page_title; } else { $breadcrumbs = array_merge(array(array($current_page["path"], reset($page_title))), array_slice($page_title, 1)); } if (isset($current_page["parent"])) { $parent_id = $current_page["parent"]; while ($parent_id) { if (isset($this->pages[$parent_id])) { $parent = $this->pages[$parent_id]; if (0 === strpos($parent["path"], self::PAGE_ROOT)) { $parent["path"] = "admin.php?page=" . $parent["path"]; } array_unshift($breadcrumbs, array($parent["path"], reset($parent["title"]))); $parent_id = isset($parent["parent"]) ? $parent["parent"] : false; } else { $parent_id = false; } } } $woocommerce_breadcrumb = array("admin.php?page=" . self::PAGE_ROOT, __("WooCommerce", "woocommerce")); array_unshift($breadcrumbs, $woocommerce_breadcrumb); return apply_filters("woocommerce_navigation_get_breadcrumbs", $breadcrumbs, $current_page); } public function get_current_page() { if (!did_action("current_screen")) { _doing_it_wrong(__FUNCTION__, esc_html__("Current page retrieval should be called on or after the `current_screen` hook.", "woocommerce"), "0.16.0"); } if (is_null($this->current_page)) { $this->determine_current_page(); } return $this->current_page; } public function get_current_screen_id() { $current_screen = get_current_screen(); if (!$current_screen) { return apply_filters("woocommerce_navigation_current_screen_id", false, $current_screen); } $screen_pieces = array($current_screen->id); if ($current_screen->action) { $screen_pieces[] = $current_screen->action; } if (!empty($current_screen->taxonomy) && isset($current_screen->post_type) && "product" === $current_screen->post_type) { if (0 === strpos($current_screen->taxonomy, "pa_")) { $screen_pieces = array("product_page_product_attribute-edit"); } if (!empty($_GET["tag_ID"])) { $screen_pieces = array($current_screen->taxonomy); } } $pages_with_tabs = apply_filters("woocommerce_navigation_pages_with_tabs", array("wc-reports" => "orders", "wc-settings" => "general", "wc-status" => "status", "wc-addons" => "browse-extensions")); $wc_emails = \WC_Emails::instance(); $wc_email_ids = array_map("sanitize_title", array_keys($wc_emails->get_emails())); $tabs_with_sections = apply_filters("woocommerce_navigation_page_tab_sections", array("products" => array('', "inventory", "downloadable"), "shipping" => array('', "options", "classes"), "checkout" => array("bacs", "cheque", "cod", "paypal"), "email" => $wc_email_ids, "advanced" => array('', "keys", "webhooks", "legacy_api", "woocommerce_com"), "browse-extensions" => array("helper"))); if (!empty($_GET["page"])) { $page = wc_clean(wp_unslash($_GET["page"])); if (in_array($page, array_keys($pages_with_tabs))) { if (!empty($_GET["tab"])) { $tab = wc_clean(wp_unslash($_GET["tab"])); } else { $tab = $pages_with_tabs[$page]; } $screen_pieces[] = $tab; if (!empty($_GET["section"])) { $section = wc_clean(wp_unslash($_GET["section"])); if (isset($tabs_with_sections[$tab]) && in_array($section, array_keys($tabs_with_sections[$tab]))) { $screen_pieces[] = $section; } } if ("shipping" === $tab && isset($_GET["zone_id"])) { $screen_pieces[] = "edit_zone"; } } } return apply_filters("woocommerce_navigation_current_screen_id", implode("-", $screen_pieces), $current_screen); } public function get_path_from_id($id) { if (isset($this->pages[$id]) && isset($this->pages[$id]["path"])) { return $this->pages[$id]["path"]; } return $id; } public function is_connected_page() { $current_page = $this->get_current_page(); if (false === $current_page) { $is_connected_page = false; } else { $is_connected_page = isset($current_page["js_page"]) ? !$current_page["js_page"] : true; } $current_screen = did_action("current_screen") ? get_current_screen() : false; if (!empty($current_screen) && method_exists($current_screen, "is_block_editor") && $current_screen->is_block_editor()) { $is_connected_page = false; } return apply_filters("woocommerce_navigation_is_connected_page", $is_connected_page, $current_page); } public function is_registered_page() { $current_page = $this->get_current_page(); if (false === $current_page) { $is_registered_page = false; } else { $is_registered_page = isset($current_page["js_page"]) && $current_page["js_page"]; } return apply_filters("woocommerce_navigation_is_registered_page", $is_registered_page, $current_page); } public function register_page($options) { $defaults = array("id" => null, "parent" => null, "title" => '', "page_title" => '', "capability" => "view_woocommerce_reports", "path" => '', "icon" => '', "position" => null, "js_page" => true); $options = wp_parse_args($options, $defaults); if (0 !== strpos($options["path"], self::PAGE_ROOT)) { $options["path"] = self::PAGE_ROOT . "&path=" . $options["path"]; } if (null !== $options["position"]) { $options["position"] = intval(round($options["position"])); } if (empty($options["page_title"])) { $options["page_title"] = $options["title"]; } if (is_null($options["parent"])) { add_menu_page($options["page_title"], $options["title"], $options["capability"], $options["path"], array(__CLASS__, "page_wrapper"), $options["icon"], $options["position"]); } else { $parent_path = $this->get_path_from_id($options["parent"]); add_submenu_page($parent_path, $options["page_title"], $options["title"], $options["capability"], $options["path"], array(__CLASS__, "page_wrapper")); } $this->connect_page($options); } public function get_pages() { return $this->pages; } public static function page_wrapper() { Loader::page_wrapper(); } public function register_page_handler() { require_once WC_ADMIN_ABSPATH . "includes/react-admin/connect-existing-pages.php"; } public function register_store_details_page() { wc_admin_register_page(array("title" => __("Setup Wizard", "woocommerce"), "parent" => '', "path" => "/setup-wizard")); } public function remove_app_entry_page_menu_item() { global $submenu; if (!current_user_can("manage_woocommerce") || empty($submenu["woocommerce"])) { return; } $wc_admin_key = null; foreach ($submenu["woocommerce"] as $submenu_key => $submenu_item) { if (is_null($submenu_item[0]) && self::APP_ENTRY_POINT === $submenu_item[2]) { $wc_admin_key = $submenu_key; break; } } if (!$wc_admin_key) { return; } unset($submenu["woocommerce"][$wc_admin_key]); } public static function is_admin_or_embed_page() { return self::is_admin_page() || self::is_embed_page(); } public static function is_admin_page() { return isset($_GET["page"]) && "wc-admin" === $_GET["page"]; } 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(); } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace Automattic\WooCommerce\Admin; use Automattic\WooCommerce\Admin\Features\Navigation\Screen; use Automattic\WooCommerce\Internal\Admin\Loader; defined("\x41\x42\123\x50\x41\124\x48") || die; class PageController { const APP_ENTRY_POINT = "\x77\143\x2d\x61\144\x6d\151\156"; const PAGE_ROOT = "\x77\143\55\141\x64\155\151\156"; private static $instance = false; private $current_page = null; private $pages = array(); public static function get_instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; } public function __construct() { add_action("\141\144\x6d\151\x6e\x5f\155\145\x6e\165", array($this, "\x72\145\147\x69\x73\164\x65\162\137\x70\x61\147\x65\137\150\x61\x6e\144\x6c\x65\x72")); add_action("\x61\144\x6d\151\x6e\137\x6d\145\156\x75", array($this, "\x72\x65\147\151\x73\x74\145\x72\137\x73\x74\x6f\x72\145\x5f\x64\145\x74\x61\x69\154\163\137\x70\141\x67\145")); add_action("\141\x64\x6d\151\156\137\150\145\141\144", array($this, "\162\145\x6d\157\166\145\x5f\x61\160\x70\137\145\156\164\x72\171\x5f\160\x61\147\x65\x5f\x6d\145\156\x75\x5f\151\164\x65\x6d"), 20); } public function connect_page($options) { if (!is_array($options["\164\x69\164\x6c\145"])) { $options["\164\x69\164\x6c\x65"] = array($options["\x74\x69\164\154\x65"]); } $options = apply_filters("\167\x6f\157\143\157\155\x6d\x65\162\x63\x65\137\x6e\141\x76\151\147\141\x74\x69\157\156\137\143\157\156\156\145\143\164\137\160\141\x67\x65\137\157\160\x74\151\157\156\163", $options); $this->pages[$options["\151\x64"]] = $options; } public function determine_current_page() { $current_url = ''; $current_screen_id = $this->get_current_screen_id(); if (isset($_SERVER["\x52\105\121\125\x45\x53\124\x5f\x55\122\111"])) { $current_url = esc_url_raw(wp_unslash($_SERVER["\x52\105\121\x55\x45\x53\124\137\125\x52\111"])); } $current_query = wp_parse_url($current_url, PHP_URL_QUERY); parse_str((string) $current_query, $current_pieces); $current_path = empty($current_pieces["\160\x61\x67\x65"]) ? '' : $current_pieces["\160\x61\x67\145"]; $current_path .= empty($current_pieces["\160\141\164\x68"]) ? '' : "\46\x70\x61\164\x68\x3d" . $current_pieces["\x70\141\164\150"]; foreach ($this->pages as $page) { if (isset($page["\x6a\163\x5f\x70\141\x67\x65"]) && $page["\x6a\163\x5f\160\141\147\145"]) { if ($page["\x70\141\x74\x68"] === $current_path) { $this->current_page = $page; return; } } else { if (isset($page["\x73\x63\162\x65\x65\x6e\x5f\x69\144"]) && $page["\163\143\162\145\x65\x6e\137\x69\144"] === $current_screen_id) { $this->current_page = $page; return; } } } $this->current_page = false; } public function get_breadcrumbs() { $current_page = $this->get_current_page(); if (false === $current_page) { return apply_filters("\x77\157\157\x63\157\155\155\145\162\143\x65\137\x6e\141\166\151\x67\x61\x74\151\x6f\156\x5f\x67\x65\x74\x5f\142\x72\145\x61\144\x63\162\x75\x6d\142\163", array(''), $current_page); } $page_title = !empty($current_page["\x70\x61\x67\145\x5f\164\151\x74\154\x65"]) ? $current_page["\160\141\147\145\x5f\x74\x69\x74\x6c\x65"] : $current_page["\164\151\x74\x6c\145"]; $page_title = (array) $page_title; if (1 === count($page_title)) { $breadcrumbs = $page_title; } else { $breadcrumbs = array_merge(array(array($current_page["\160\141\164\150"], reset($page_title))), array_slice($page_title, 1)); } if (isset($current_page["\x70\141\x72\145\x6e\164"])) { $parent_id = $current_page["\x70\141\162\145\156\164"]; while ($parent_id) { if (isset($this->pages[$parent_id])) { $parent = $this->pages[$parent_id]; if (0 === strpos($parent["\x70\x61\x74\x68"], self::PAGE_ROOT)) { $parent["\160\141\x74\150"] = "\141\144\x6d\x69\156\56\160\x68\160\x3f\160\x61\x67\x65\x3d" . $parent["\x70\141\x74\x68"]; } array_unshift($breadcrumbs, array($parent["\x70\141\164\150"], reset($parent["\x74\x69\164\x6c\145"]))); $parent_id = isset($parent["\160\141\162\145\156\x74"]) ? $parent["\x70\x61\x72\x65\156\164"] : false; } else { $parent_id = false; } } } $woocommerce_breadcrumb = array("\x61\x64\155\151\156\x2e\x70\150\160\x3f\x70\x61\147\x65\x3d" . self::PAGE_ROOT, __("\127\x6f\157\103\x6f\155\155\x65\x72\x63\145", "\x77\x6f\x6f\143\x6f\155\x6d\x65\x72\143\145")); array_unshift($breadcrumbs, $woocommerce_breadcrumb); return apply_filters("\167\x6f\x6f\143\x6f\155\x6d\x65\162\x63\145\137\156\141\166\151\x67\x61\x74\151\157\156\137\x67\x65\x74\137\142\162\145\x61\144\x63\x72\x75\155\142\163", $breadcrumbs, $current_page); } public function get_current_page() { if (!did_action("\143\165\x72\162\x65\156\x74\x5f\163\143\x72\x65\x65\x6e")) { _doing_it_wrong(__FUNCTION__, esc_html__("\103\x75\162\x72\145\x6e\164\40\160\x61\x67\x65\x20\162\145\x74\162\x69\x65\166\141\154\x20\163\150\157\x75\x6c\144\40\142\x65\40\143\141\154\x6c\145\x64\x20\157\156\x20\157\162\40\x61\146\x74\145\162\40\x74\x68\x65\x20\x60\143\x75\162\162\145\156\x74\137\163\143\162\145\145\x6e\x60\x20\x68\157\x6f\x6b\x2e", "\x77\157\x6f\143\157\x6d\155\x65\162\143\145"), "\x30\x2e\x31\x36\x2e\x30"); } if (is_null($this->current_page)) { $this->determine_current_page(); } return $this->current_page; } public function get_current_screen_id() { $current_screen = get_current_screen(); if (!$current_screen) { return apply_filters("\167\157\x6f\143\157\x6d\x6d\x65\162\143\145\137\156\141\166\151\x67\141\x74\x69\157\x6e\137\143\165\162\162\x65\x6e\164\137\x73\143\x72\x65\x65\156\x5f\x69\x64", false, $current_screen); } $screen_pieces = array($current_screen->id); if ($current_screen->action) { $screen_pieces[] = $current_screen->action; } if (!empty($current_screen->taxonomy) && isset($current_screen->post_type) && "\160\x72\x6f\x64\165\143\164" === $current_screen->post_type) { if (0 === strpos($current_screen->taxonomy, "\x70\x61\137")) { $screen_pieces = array("\160\x72\157\x64\x75\x63\164\137\x70\141\x67\x65\137\160\162\157\x64\x75\143\x74\x5f\141\164\x74\162\x69\x62\165\x74\x65\x2d\145\144\x69\x74"); } if (!empty($_GET["\164\x61\x67\137\x49\104"])) { $screen_pieces = array($current_screen->taxonomy); } } $pages_with_tabs = apply_filters("\x77\x6f\157\x63\x6f\155\155\x65\x72\143\x65\x5f\x6e\141\166\x69\147\x61\x74\x69\x6f\156\x5f\x70\x61\x67\x65\x73\x5f\x77\151\164\150\x5f\x74\141\x62\x73", array("\x77\143\x2d\x72\145\x70\157\x72\164\x73" => "\157\x72\x64\145\162\x73", "\x77\x63\55\x73\145\x74\x74\151\156\x67\163" => "\x67\x65\x6e\145\x72\x61\x6c", "\x77\x63\55\x73\164\141\x74\165\163" => "\x73\x74\x61\164\x75\163", "\x77\x63\x2d\141\144\x64\157\156\x73" => "\x62\162\x6f\x77\x73\145\x2d\145\170\x74\x65\156\163\x69\157\x6e\x73")); $wc_emails = \WC_Emails::instance(); $wc_email_ids = array_map("\163\141\x6e\x69\164\151\x7a\145\137\x74\151\x74\154\145", array_keys($wc_emails->get_emails())); $tabs_with_sections = apply_filters("\x77\x6f\x6f\143\x6f\155\x6d\145\162\x63\145\x5f\x6e\x61\166\x69\x67\141\x74\151\157\156\x5f\x70\141\x67\x65\x5f\x74\x61\x62\137\x73\x65\x63\x74\x69\x6f\x6e\x73", array("\x70\x72\157\x64\165\x63\x74\163" => array('', "\x69\x6e\166\145\x6e\x74\157\162\171", "\x64\157\167\x6e\154\x6f\x61\x64\x61\x62\x6c\x65"), "\163\x68\151\160\160\x69\156\147" => array('', "\x6f\x70\164\x69\x6f\156\163", "\143\154\x61\x73\x73\145\163"), "\x63\150\145\x63\x6b\x6f\x75\x74" => array("\142\x61\x63\163", "\x63\150\x65\161\x75\145", "\143\x6f\144", "\160\x61\x79\160\141\154"), "\x65\x6d\141\x69\x6c" => $wc_email_ids, "\141\144\x76\x61\156\x63\x65\144" => array('', "\153\x65\171\x73", "\x77\x65\142\150\x6f\157\x6b\163", "\x6c\x65\147\141\143\171\137\141\160\x69", "\x77\x6f\157\143\x6f\155\x6d\x65\162\x63\x65\x5f\x63\x6f\x6d"), "\142\x72\x6f\x77\163\x65\55\145\170\x74\145\156\x73\151\x6f\156\163" => array("\x68\145\x6c\160\x65\x72"))); if (!empty($_GET["\x70\x61\147\145"])) { $page = wc_clean(wp_unslash($_GET["\160\141\x67\x65"])); if (in_array($page, array_keys($pages_with_tabs))) { if (!empty($_GET["\x74\x61\142"])) { $tab = wc_clean(wp_unslash($_GET["\164\x61\142"])); } else { $tab = $pages_with_tabs[$page]; } $screen_pieces[] = $tab; if (!empty($_GET["\163\145\143\x74\151\157\x6e"])) { $section = wc_clean(wp_unslash($_GET["\x73\x65\x63\164\151\157\156"])); if (isset($tabs_with_sections[$tab]) && in_array($section, array_keys($tabs_with_sections[$tab]))) { $screen_pieces[] = $section; } } if ("\163\150\x69\x70\160\151\156\x67" === $tab && isset($_GET["\x7a\x6f\156\145\x5f\x69\144"])) { $screen_pieces[] = "\x65\x64\x69\x74\x5f\172\157\x6e\145"; } } } return apply_filters("\167\x6f\x6f\143\x6f\155\x6d\145\162\x63\145\x5f\156\x61\166\x69\x67\141\164\151\x6f\156\137\x63\x75\x72\x72\145\156\x74\x5f\163\143\162\x65\x65\156\x5f\151\x64", implode("\55", $screen_pieces), $current_screen); } public function get_path_from_id($id) { if (isset($this->pages[$id]) && isset($this->pages[$id]["\160\141\x74\x68"])) { return $this->pages[$id]["\x70\141\x74\x68"]; } return $id; } public function is_connected_page() { $current_page = $this->get_current_page(); if (false === $current_page) { $is_connected_page = false; } else { $is_connected_page = isset($current_page["\152\x73\x5f\160\x61\147\145"]) ? !$current_page["\152\163\137\160\x61\147\x65"] : true; } $current_screen = did_action("\x63\x75\162\x72\145\156\x74\x5f\163\x63\x72\145\145\156") ? get_current_screen() : false; if (!empty($current_screen) && method_exists($current_screen, "\151\x73\137\x62\x6c\x6f\143\x6b\x5f\x65\144\151\x74\157\x72") && $current_screen->is_block_editor()) { $is_connected_page = false; } return apply_filters("\x77\157\x6f\x63\157\155\155\145\162\x63\x65\137\x6e\x61\166\151\147\x61\x74\x69\157\x6e\137\x69\x73\137\x63\157\x6e\x6e\x65\x63\164\145\x64\137\x70\141\x67\145", $is_connected_page, $current_page); } public function is_registered_page() { $current_page = $this->get_current_page(); if (false === $current_page) { $is_registered_page = false; } else { $is_registered_page = isset($current_page["\152\163\x5f\160\141\x67\x65"]) && $current_page["\x6a\163\x5f\160\141\x67\x65"]; } return apply_filters("\167\x6f\157\143\157\155\155\x65\x72\x63\x65\137\x6e\x61\x76\151\x67\x61\164\151\157\156\x5f\151\x73\137\162\x65\x67\x69\163\x74\145\162\145\144\x5f\160\141\x67\x65", $is_registered_page, $current_page); } public function register_page($options) { $defaults = array("\x69\x64" => null, "\160\x61\x72\x65\156\x74" => null, "\x74\151\x74\154\x65" => '', "\x70\141\147\x65\x5f\x74\151\164\154\145" => '', "\x63\x61\x70\x61\142\151\154\151\164\171" => "\166\x69\145\167\x5f\x77\x6f\x6f\143\157\x6d\x6d\145\162\x63\x65\x5f\162\145\160\157\x72\x74\x73", "\x70\x61\164\x68" => '', "\151\x63\x6f\156" => '', "\x70\157\163\x69\x74\151\x6f\x6e" => null, "\x6a\x73\137\x70\x61\x67\x65" => true); $options = wp_parse_args($options, $defaults); if (0 !== strpos($options["\160\x61\164\x68"], self::PAGE_ROOT)) { $options["\160\141\164\x68"] = self::PAGE_ROOT . "\x26\x70\x61\x74\x68\x3d" . $options["\160\141\164\x68"]; } if (null !== $options["\160\x6f\x73\x69\x74\x69\x6f\156"]) { $options["\x70\x6f\x73\151\164\x69\157\x6e"] = intval(round($options["\160\157\x73\x69\x74\x69\x6f\156"])); } if (empty($options["\x70\141\147\145\137\164\151\164\154\145"])) { $options["\x70\141\147\x65\137\x74\x69\x74\x6c\x65"] = $options["\164\151\x74\154\145"]; } if (is_null($options["\x70\141\x72\145\x6e\x74"])) { add_menu_page($options["\160\141\x67\x65\137\164\x69\164\x6c\145"], $options["\164\x69\164\154\145"], $options["\143\x61\x70\141\142\151\x6c\151\x74\x79"], $options["\160\x61\164\150"], array(__CLASS__, "\x70\141\x67\145\x5f\x77\x72\141\160\160\145\x72"), $options["\x69\143\x6f\x6e"], $options["\160\x6f\x73\x69\x74\x69\x6f\x6e"]); } else { $parent_path = $this->get_path_from_id($options["\160\x61\x72\145\156\x74"]); add_submenu_page($parent_path, $options["\160\141\x67\x65\137\x74\x69\164\154\145"], $options["\164\x69\x74\x6c\145"], $options["\143\x61\x70\141\142\x69\x6c\x69\164\x79"], $options["\x70\141\164\x68"], array(__CLASS__, "\x70\141\x67\145\x5f\x77\162\141\x70\x70\145\162")); } $this->connect_page($options); } public function get_pages() { return $this->pages; } public static function page_wrapper() { Loader::page_wrapper(); } public function register_page_handler() { require_once WC_ADMIN_ABSPATH . "\151\x6e\143\x6c\165\144\x65\x73\x2f\x72\x65\141\x63\x74\x2d\x61\144\155\x69\x6e\57\x63\157\156\156\x65\x63\x74\x2d\x65\170\151\x73\x74\x69\x6e\x67\55\x70\141\147\x65\x73\56\160\150\160"; } public function register_store_details_page() { wc_admin_register_page(array("\x74\151\164\154\145" => __("\x53\x65\164\x75\x70\x20\x57\151\x7a\141\x72\x64", "\167\x6f\x6f\143\157\155\155\145\162\x63\x65"), "\160\x61\162\x65\156\164" => '', "\160\x61\164\x68" => "\57\163\x65\164\165\160\x2d\167\x69\x7a\x61\162\x64")); } public function remove_app_entry_page_menu_item() { global $submenu; if (!current_user_can("\155\141\x6e\141\x67\145\x5f\x77\x6f\x6f\x63\157\155\x6d\x65\x72\143\145") || empty($submenu["\167\x6f\x6f\x63\157\155\x6d\x65\162\x63\145"])) { return; } $wc_admin_key = null; foreach ($submenu["\167\157\157\143\x6f\155\x6d\x65\162\143\145"] as $submenu_key => $submenu_item) { if (is_null($submenu_item[0]) && self::APP_ENTRY_POINT === $submenu_item[2]) { $wc_admin_key = $submenu_key; break; } } if (!$wc_admin_key) { return; } unset($submenu["\x77\x6f\x6f\143\157\x6d\x6d\x65\x72\143\145"][$wc_admin_key]); } public static function is_admin_or_embed_page() { return self::is_admin_page() || self::is_embed_page(); } public static function is_admin_page() { return isset($_GET["\160\x61\147\x65"]) && "\167\x63\x2d\141\144\x6d\x69\156" === $_GET["\x70\141\147\145"]; } public static function is_embed_page() { return wc_admin_is_connected_page() || !self::is_admin_page() && class_exists("\x41\x75\x74\x6f\155\141\x74\x74\x69\x63\x5c\127\157\157\103\x6f\x6d\x6d\x65\162\x63\145\134\101\144\x6d\151\x6e\134\106\x65\x61\164\165\x72\145\x73\x5c\x4e\141\x76\151\x67\x61\164\x69\x6f\156\x5c\123\x63\x72\145\x65\156") && Screen::is_woocommerce_page(); } }

Function Calls

None

Variables

None

Stats

MD5 10f8b6be859f8c226dc69f304f49a869
Eval Count 0
Decode Time 144 ms