function loaded() { $this->meta_manager = new WCB_Post_Meta_Manager(array('prefix' => 'wcb_session', 'keys' => array('speakers'))); if (is_admin()) { $meta_fields = array('speakers' => array('type' => 'text', 'label' => __('Speakers', 'wordcampbase'))); $box = wcb_get_metabox('WCB_Post_Metabox'); $box->add_instance(WCB_SESSION_POST_TYPE, array('title' => __('Speakers', 'wordcampbase'), 'meta_manager' => $this->meta_manager, 'meta_fields' => $meta_fields, 'context' => 'normal', 'priority' => 'high')); } }
function loaded() { $this->meta_manager = new WCB_Post_Meta_Manager(array('prefix' => 'wcb_speaker', 'keys' => array('email'))); if (is_admin()) { $meta_fields = array('email' => array('type' => 'text', 'label' => __('Gravatar Email', 'wordcampbase'))); $box = wcb_get_metabox('WCB_Post_Metabox'); $box->add_instance(WCB_SPEAKER_POST_TYPE, array('title' => __('Gravatar Email', 'wordcampbase'), 'meta_manager' => $this->meta_manager, 'meta_fields' => $meta_fields)); } }