コード例 #1
0
 public function __construct()
 {
     parent::__construct($this->gitium_menu_slug, $this->settings_menu_slug);
     add_action('admin_menu', array($this, 'admin_menu'));
     add_action('admin_init', array($this, 'save'));
     add_action('admin_init', array($this, 'regenerate_webhook'));
     add_action('admin_init', array($this, 'regenerate_public_key'));
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct($this->gitium_menu_slug, $this->gitium_menu_slug);
     if (current_user_can('manage_options')) {
         add_action('admin_menu', array($this, 'admin_menu'));
         add_action('admin_init', array($this, 'save_changes'));
         add_action('admin_init', array($this, 'save_ignorelist'));
     }
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct($this->gitium_menu_slug, $this->gitium_menu_slug);
     if (current_user_can('manage_options')) {
         add_action('admin_menu', array($this, 'admin_menu'));
         add_action('admin_init', array($this, 'regenerate_keypair'));
         add_action('admin_init', array($this, 'gitium_warning'));
         add_action('admin_init', array($this, 'init_repo'));
         add_action('admin_init', array($this, 'choose_branch'));
     }
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct($this->gitium_menu_slug, $this->commits_menu_slug);
     add_action('admin_menu', array($this, 'admin_menu'));
 }