Пример #1
0
 /**
  * Register the admin menu items
  *
  * The parent class will take care of registering them
  */
 function setup_admin_menus($admin_menus)
 {
     $admin_menus = array();
     $admin_menus[] = array('page_title' => __('Foo', 'pf'), 'menu_title' => __('Foo', 'pf'), 'cap' => 'edit_posts', 'slug' => 'pf-foo', 'callback' => array($this, 'admin_menu_callback'));
     parent::setup_admin_menus($admin_menus);
 }
Пример #2
0
 /**
  * Register the admin menu items
  *
  * The parent class will take care of registering them
  */
 function setup_admin_menus($admin_menus)
 {
     $admin_menus = array();
     $admin_menus[] = array('page_title' => __('View Log', 'pf'), 'menu_title' => __('View Log', 'pf'), 'cap' => get_option('pf_menu_log_access', pf_get_defining_capability_by_role('administrator')), 'slug' => 'pf-debugger', 'callback' => array($this, 'admin_menu_callback'));
     parent::setup_admin_menus($admin_menus);
 }
Пример #3
0
 /**
  * Register the admin menu items
  *
  * The parent class will take care of registering them
  */
 function setup_admin_menus($admin_menus)
 {
     $admin_menus = array();
     $admin_menus[] = array('page_title' => __('Internal Commenting', 'pf'), 'menu_title' => __('Internal Commenting', 'pf'), 'cap' => 'manage_options', 'slug' => 'pf-comments', 'callback' => array($this, 'admin_menu_callback'));
     parent::setup_admin_menus($admin_menus);
 }