public function add_meta_boxes() { foreach ($this->meta_box['post_types'] as $post_type) { add_meta_box($this->meta_box['id'], $this->meta_box['title'], array($this, 'show'), $post_type, $this->meta_box['context'], $this->meta_box['priority']); } }