Re-Order Sidebar Widgets in Wordpress Admin Left Sidebar

Tags: Wordpress, php, css
 

Doesn't seem like there's a hook for this. According to people in the forum, this can't be controlled.

Flexbox to the rescue!

Stick this in functions.php. Make sure to use your dev tools to make sure the classes are right. But basically, you use flexbox order property to rearrange items in the left admin sidebar.

add_action('admin_head', 'mytheme_custom_admin_css');
 
function mytheme_custom_admin_css() {
  echo '<style type="text/css">
    html .edit-post-meta-boxes-area {
		order: -1;
	}
	html .components-panel {
		display: flex;
		flex-direction: column;
	}
  </style>';
}

About the Author

Hi. My name is Jeremiah John. I'm a sf/f writer and activist.

I just completed a dystopian science fiction novel. I run a website which I created that connects farms with churches, mosques, and synagogues to buy fresh vegetables directly and distribute them on a sliding scale to those in need.

In 2003, I spent six months in prison for civil disobedience while working to close the School of the Americas, converting to Christianity, as one does, while I was in the clink.