12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Jan 8, 2019

How to remove Oxygen meta box from Edit Media pages

Sridhar Katakam

Going to WordPress Media Library and clicking on any image when in the List view will show the Oxygen’s meta box at the bottom.

Let us see how we can get rid of this as it is of no use on media pages.

Method 1

When on any Edit Media page, click on Screen Options near the top right and uncheck Oxygen.

Note that this change is specific to the current user and does not apply to all the users.

Method 2

This method removes the meta box by default for all the users.

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Remove Oxygen meta box from Edit Media pages


add_action( 'do_meta_boxes', 'custom_remove_oxygen_metabox_media' );
 * Remove Oxygen meta box from Edit Media pages.
function custom_remove_oxygen_metabox_media() {
	remove_meta_box( 'ct_views_cpt', 'attachment', 'normal' );

Set it to run only in the admin.

That’s it!