WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media popup.

I want to hide Align and Sizes fields for the Set Featured Image popup but have them visible for the Add Media panel.

I am able to use the attachment_fields_to_edit filter to remove certain fields but not for the two different pop up box types.

Is it possible to do this?

share|improve this question

I'm familiar with attachment_fields_to_edit and don't recall ever seeing anything on being able to do modification as granular as you're suggesting. There's a WP global $screen (or is it $screens) that perhaps might help but I'm not too sure.

Have you considered - as hacky as it might sound - doing these things with CSS and/or javascript?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.