private function admin() { add_action('wp_loaded', array($this, "load_admin_toolbar")); if (isset($_GET["page"]) && $_GET["page"] == "wpfastestcacheoptions") { include_once 'inc/admin.php'; $wpfc = new WpFastestCacheAdmin(); $wpfc->addMenuPage(); } else { add_action('admin_menu', array($this, 'register_my_custom_menu_page')); } add_action('admin_enqueue_scripts', array($this, 'load_toolbar_js')); }
private function admin() { include_once 'inc/admin.php'; $wpfc = new WpFastestCacheAdmin(); $wpfc->addMenuPage(); }
private function admin() { if (isset($_GET["page"]) && $_GET["page"] == "wpfastestcacheoptions") { include_once 'inc/admin.php'; $wpfc = new WpFastestCacheAdmin(); $wpfc->addMenuPage(); } else { add_action('admin_menu', array($this, 'register_my_custom_menu_page')); } }