public static function admin_head_page()
 {
     if (!wpsc_is_store_admin()) {
         return;
     }
     add_filter('admin_body_class', array(__CLASS__, 'admin_body_class'));
     if (self::$page === 'dash') {
         self::$list_table = new Sputnik_List_Install();
         $pagenum = self::$list_table->get_pagenum();
         self::$list_table->prepare_items();
     } elseif (self::$page === 'account') {
         self::$list_table = new Sputnik_List_Account();
         $pagenum = self::$list_table->get_pagenum();
         self::$list_table->prepare_items();
     }
     add_action('sputnik_messages', array(__CLASS__, 'admin_notices'));
 }
Exemple #2
0
 public static function admin_head_page()
 {
     if (self::$page === 'dash') {
         self::$list_table = new Sputnik_List_Install();
         $pagenum = self::$list_table->get_pagenum();
         self::$list_table->prepare_items();
     } elseif (self::$page === 'account') {
         self::$list_table = new Sputnik_List_Account();
         $pagenum = self::$list_table->get_pagenum();
         self::$list_table->prepare_items();
     }
     add_action('sputnik_messages', array(__CLASS__, 'admin_notices'));
 }