title

Disable dragging of metaboxes within admin

 

Disable dragging of metaboxes within admin

10 Mai 2013, Posted by antoine in

Adding this snippet to the functions.php of your wordpress theme will disable all dragging of metaboxes within the admin. Please note that this includes dashboard widgets as well.

function disable_drag_metabox() {
    wp_deregister_script('postbox');
}
add_action( 'admin_init', 'disable_drag_metabox' );