/**
  * Sets up metabox.
  *
  * @param string $id
  * @param string $title
  * @param string|array $post_type
  * @param string $context (optional)
  * @param string $priority (optional)
  *
  * @return void
  */
 public function __construct($id, $title, $post_type, $context = 'normal', $priority = 'default')
 {
     if (!current_theme_supports('app-media-manager')) {
         return;
     }
     self::$id = $id;
     parent::__construct("{$id}-metabox", $title, $post_type, $context, $priority);
 }
示例#2
0
 public function __construct($id, $title, $post_type, $context = 'normal', $priority = 'default')
 {
     parent::__construct($id, $title, $post_type, $context, $priority);
 }