fieldtype = "setMailAttachment"; $this->hasSaveField = true; $this->AbortGlobalSave = false; $this->classSubActions = array('getMailAttachmentData'); } public function getMailAttachmentData() { global $wpdb, $current_user, $meta_marker, $post_id; } public function saveField($post_id, $key, $meta_marker, $data, $field) { global $current_user, $post_id; if (isset($_POST[$key . $meta_marker])) { $data = $_POST[$key . $meta_marker]; } // update_post_meta($post_id,$key . $meta_marker,$data); } public function getField($oThis, $config, $post, $meta_marker) { global $current_user, $post_id; //'test'.$this->meta_marker."**".$this->add_image; $this->init($oThis, $config, $post, $meta_marker); // print_r($oThis);exit(); $str = "
"; return $str; //'test'.$this->meta_marker."**".$this->add_image; return $str; } } } $oThis->extension_class_instances['setMailAttachment'] = new setMailAttachmentCls(); //$setUploadGrid=new setUploadGridCls(); ?>