Disable metabox dragging in WordPress backend

A quick snippet

Just noticed a flaw in this, the postbox script affects also to the tagging interface, disabling it you disable the tagging.

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

Not for the admin.


if (!current_user_can('author')) {
    function disable_drag_metabox() {
        wp_deregister_script('postbox');
    }
    add_action( 'admin_init', 'disable_drag_metabox' );
}

Club-Mate, the beverage → club-mate.fi