/** * 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); }
public function __construct($id, $title, $post_type, $context = 'normal', $priority = 'default') { parent::__construct($id, $title, $post_type, $context, $priority); }