添加经典样式编辑器

add_meta_box('metabox5','Gallary','box_callback',array(''),'normal');

function box_callback($post){
    wp_nonce_field('box5_nonceaction','box5_noncename');
   $value = get_post_meta( $post->ID, '_box5_value_key', true );
     wp_editor( htmlspecialchars_decode($value),  $editor_id, $settings = array(
       'quicktags'=> 0,
        'tinymce'=>0,
        'textarea_rows'=>4,
        'editor_class'=>"textareastyle"
)); }
$post_ID = $_POST['post_ID'];
$mydata = $_POST[ $editor_id];
update_post_meta($post_ID,'_box5_value_key',$mydata);