/** * Initialize the class and set its properties. * * @since 1.0.0 * @var string $plugin_slug The name of the plugin. * @var string $version The version of this plugin. */ public function __construct($plugin) { $this->plugin = $plugin; $this->plugin_slug = $this->plugin->get('slug'); $this->plugin_name = $this->plugin->get('name'); $this->version = $this->plugin->get('version'); }
/** * Initialize the class and set its properties. * * @since 1.0.0 * @var string $plugin_slug The name of this plugin. * @var string $version The version of this plugin. */ public function __construct($plugin) { $this->plugin = $plugin; $this->plugin_slug = $this->plugin->get('slug'); $this->plugin_name = $this->plugin->get('name'); $this->version = $this->plugin->get('version'); $this->options = $this->plugin->get('options'); // Setup metaboxes. add_action('cmb2_admin_init', array($this, 'register_role_metabox')); add_action('cmb2_admin_init', array($this, 'register_project_metabox')); add_action('cmb2_admin_init', array($this, 'register_action_item_metabox')); // Setup custom field types. add_action('cmb2_render_status_select', array($this, 'render_status_select'), 10, 4); }
/** * Initialize the class and set its properties. * * @since 1.0.0 * @var string $plugin_slug The name of this plugin. * @var string $version The version of this plugin. */ public function __construct($plugin) { $this->plugin = $plugin; $this->plugin_slug = $this->plugin->get('slug'); $this->plugin_name = $this->plugin->get('name'); $this->version = $this->plugin->get('version'); $this->options = $this->plugin->get('options'); // Set up new metaboxes class. $metaboxes = MKP_Holacracy_Metaboxes::get_instance($this->plugin); }