transmitstudio
11/3/2016 - 9:56 PM

Move the WordPress WYSIWYG editor

Move the WordPress WYSIWYG editor

<?php

add_action( 'add_meta_boxes', 'action_add_meta_boxes', 0 );
function action_add_meta_boxes() {
    global $_wp_post_type_features;
	if (isset($_wp_post_type_features['post']['editor']) && $_wp_post_type_features['post']['editor']) {
		unset($_wp_post_type_features['post']['editor']);
		add_meta_box(
			'description_section',
			__('Description'),
			'inner_custom_box',
			'post', 'normal', 'high'
		);
	}
	if (isset($_wp_post_type_features['page']['editor']) && $_wp_post_type_features['page']['editor']) {
		unset($_wp_post_type_features['page']['editor']);
		add_meta_box(
			'description_sectionid',
			__('Description'),
			'inner_custom_box',
			'page', 'normal', 'high'
		);
	}
}
function inner_custom_box( $post ) {
	the_editor($post->post_content);
}

?>