php - Move the Editor Box in WordPress -
This question and an answer is already here is:
- 2 Responses
I'm looking around To find a solution to move the main editor box into the WordPress 'New Add' page, I want to add two meta boxes between the title and the editor. Most of the methods I found on the internet, mostly using the wordpress hook hooked How to do this?
Found solutions replace it with 'post_type' with your custom post types ..
// TinyMCE editor move down ADD_ACTION ( 'add_meta_boxes', 'action_add_meta_boxes', 0); Function_add_meta_boxes () {global $ _wp_post_type_features; If (isset ($ _ wp_post_type_features [ 'post_type'] [ 'editor']) in & amp; & amp; $ _wp_post_type_features [ 'post_type'] [ 'editor']) {unset ($ _ wp_post_type_features [ 'post_type'] [ 'Editor']) ; add_meta_box ( 'description_section', __ ( 'description'), 'Inner_custom_box' Post_type ',' normal ',' low '); } Add_action ('admin_head', 'action_admin_head'); // white background} function_admin_head () {? & Gt; & Lt; Style type = "text / css" & gt; .wp-editor-container {background-color: #fff;} & lt; / Style & gt; & Lt ;? Php} Function Inrilegraph_box ($ post) {echo '& lt; Div class = "wp-editor-wrap" & gt; '; Wp_editor ($ post & gt; POST_CONTENT, 'content', array ('DFW' = & gt; true, 'tabindex' => 1)); Echo & lt; / Div & gt; '; }
Comments
Post a Comment