Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I need a functions.php hook that will allow me to add the standard CSS Classes field to the "ATTACHMENT DISPLAY SETTINGS" section of the Media Uploader modal. I know the css class field can be accessed under "Advanced Settings" after the image has already been attached, but I want to hook it to the uploader modal as well. Some of my clients can't seem to remember how to get into advanced settings no matter how many times I show them.

share|improve this question
 
I found this which assigns a specified class by default, which is a sort of solution, except that it overrides any other classes WP assigns to it, like alignright for instance, which makes it unusable. Is there a way to adapt this so that it doesn't override the other classes from alignment and image size selections? function my_image_tag_class($class){ $class='custom-picture-frame'; return $class; } add_filter('get_image_tag_class','my_image_tag_class'); –  Thom Aug 23 '13 at 9:25
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.