Support

Account

Home Forums Backend Issues (wp-admin) Order of forms not being kept Reply To: Order of forms not being kept

  • After some research and trial and error, here’s what I’ve come up with. For my case it turns out you don’t necessarily need to do anything re the database directly. I used two functions.

    1

    function move_wysiwyg_editor() {
      global $post;
      global $wp_meta_boxes;
      do_meta_boxes(get_current_screen(), 'normal', $post);
      unset($wp_meta_boxes[get_post_type($post)]['normal']);
    }
    add_action('edit_form_after_title', 'move_wysiwyg_editor');

    2

    function remove_plugin_metaboxes() {
      remove_meta_box('id_of_metabox_from_plugin', 'request_form', 'advanced');
      // repeat as needed
    }
    add_action('do_meta_boxes', 'remove_plugin_metaboxes');