Home » Labs » WordPress Disable Dragging of Metaboxes on Admin Panel  

WordPress Disable Dragging of Metaboxes on Admin Panel


Filed under Labs

The bellow code will disable dragging features of metaboxes in wp admin panel. For disabling dragging of metaboxes just copy below snippet to the functions.php in your wordpress theme.

 
<?php
 
function disable_dragging_on_adminpanel() {
    wp_deregister_script('postbox');
}
add_action( 'admin_init', 'disable_dragging_on_adminpanel' );
 
?>

Posts you may like: