예제 #1
0
 /**
  * setup actions and hooks to add metaboxes and save metadata
  *
  * @since 1.0.0
  * @access protected
  */
 protected function actions()
 {
     // run parent to keep init and enqueuing assets
     parent::actions();
     // set screen activation
     add_action('current_screen', array($this, 'set_active_status'), 25);
     // add metaboxes
     add_action('add_meta_boxes', array($this, 'add_metaboxes'), 25);
     // save metabox
     add_action('save_post', array($this, 'save_meta'), 10, 2);
 }