Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Dave Navarro, Jr. on "Remove Description from Media Editor"

$
0
0

I just got around to noticing that code I used with the filter "attachment_fields_to_edit" to remove some of the default fields is no longer working.

After an hour of searching, I can across this trac:

https://core.trac.wordpress.org/ticket/22664#comment:7

Where Nacin says:

"attachment_fields_to_edit no longer contains the standard fields, including image-size, align, image_alt, post_title, post_excerpt, url, menu_order, post_content, and image_url, because these are now rendered using media views. So, these fields are simply not passed to the filter."

However, I have not been able to find any information on "media views" so that I can write new code to filter these fields out.

I believe I found the "view" in media-template.php, but there isn't any indication that those fields are filterable.

Any help on removing description and alt-text from the media editor?


Viewing all articles
Browse latest Browse all 8245

Trending Articles