Disable Dragging Of WordPress Dashboard Metaboxes

Wordpress Dashboard
When you log into your WordPress dashboard you are presented with numerous WordPress metaboxes. These allow you to display different bits of data about your blog which can be vital to the user who is currently logged in.

The user is able to drag and delete the meta boxes around the dashboard to position them where they want. But what if you always want certain meta boxes at the top of the dashboard and never want these to be moved.

You can disable the dragging of the metaboxes by adding the following snippet into your functions.php page.

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

Advertise here

Comment