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')); }
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')); } }
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')); } }
public function __construct() { parent::__construct($this->gitium_menu_slug, $this->commits_menu_slug); add_action('admin_menu', array($this, 'admin_menu')); }