Esempio n. 1
0
 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'));
 }
Esempio n. 2
0
 private function admin()
 {
     include_once 'inc/admin.php';
     $wpfc = new WpFastestCacheAdmin();
     $wpfc->addMenuPage();
 }
Esempio n. 3
0
 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'));
     }
 }