/** * Do kolekce metaboxů přidá jeden metabox. * * @author Tomáš Kocifaj * @link http://www.ktstudio.cz * * @param KT_Metabox $metabox * @return \KT_Custom_Metaboxes_Base */ public function addMetabox(KT_Metabox $metabox) { $currentMetaboxCollection = $this->getMetaboxCollection(); $currentMetaboxCollection[$metabox->getId()] = $metabox; $this->setMetaboxCollection($currentMetaboxCollection); return $this; }