How to disable dragging of WordPress dashboard metaboxes

When you login to your dashboard, WordPress populates your screen with number of WordPress metaboxes. by default, user can drag and drop these metaboxes to change its position.

To disable the dragging of metaboxes, copy the following code and paste it inside your functions.php file.

//Disable dragging of WordPress metaboxes
function disable_drag_metabox() {
add_action( 'admin_init', 'disable_drag_metabox' );

Useful Read: Disable Default Dashboard Widgets



Leave a Comment.