WordPress

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' );
Back to top ^

Join Paulund

  • Get access to 100s of premium tutorials and downloadable content
  • Members content consists of Premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *