示例#1
0
 function page_init()
 {
     parent::page_init();
     extract($this->args);
     // Make the first submenu read 'Dashboard', not the top-level title
     $this->pagehook = add_submenu_page($page_slug, $page_title, __('Dashboard', APP_TD), $capability, $page_slug, array($this, '_page_content_hook'));
 }
示例#2
0
 function page_init()
 {
     // This will be enqueued on all admin pages
     wp_enqueue_style('app-admin', get_template_directory_uri() . '/includes/admin/admin.css');
     parent::page_init();
     extract($this->args);
     // Make the first submenu read 'Dashboard', not the top-level title
     $this->pagehook = add_submenu_page($page_slug, $page_title, __('Dashboard', APP_TD), $capability, $page_slug, array($this, '_page_content_hook'));
 }
 function page_init()
 {
     // This will be enqueued on all admin pages
     wp_enqueue_style('app-admin', get_template_directory_uri() . '/includes/admin/admin.css');
     parent::page_init();
 }
示例#4
0
 public function boxes_init()
 {
     add_screen_option('screen_columns', $this->args['columns']);
     parent::boxes_init();
 }