Beispiel #1
0
 public function __construct($id, $title, $screens = null, $context = 'advanced', $priority = 'default')
 {
     parent::__construct($id, $title, $screens, $context, $priority);
     add_action('save_post', array($this, 'saveData'));
 }
Beispiel #2
0
 public function add()
 {
     if (!$this->is_needed()) {
         return;
     }
     parent::add();
 }