示例#1
0
 /**
  * Meta box call-back function.
  *
  * @return void
  */
 public function meta_box_cb()
 {
     add_meta_box('comic-image', __('Comic Image', MP_DOMAIN), array($this, 'comic_meta_box_cb'), $this->_post_type->get_name(), 'normal', 'high');
     /*
      * Because we don't need this...the comic image is the "Featured Image"
      * TODO add an option for users to override this "functionality"
      */
     remove_meta_box('postimagediv', 'mangapress_comic', 'side');
 }
 /**
  * Sets post-type arguments
  *
  * @param array $args
  * @return array|PostType
  */
 public function set_arguments($args = array())
 {
     $args = array('capability_type' => 'post', 'supports' => array('thumbnail', 'author', 'title', 'comments'), 'menu_icon' => MP_URLPATH . 'images/menu_icon.png', 'rewrite' => array('slug' => 'comic'));
     return parent::set_arguments($args);
 }