public function __construct($cpt, $args = array()) { if (!class_exists('MultiPostThumbnails')) { throw new Exception('This class requires the MultiPostThumbnails plugin'); } parent::__construct($cpt, $args); }
public function metabox($id, $page = null) { if (!$page) { global $post; $page = $post; } return MetaBox::value($id, $page->ID); }
public function __construct($cpt, $args = array()) { parent::__construct($cpt, $args); }