[wp-trac] [WordPress Trac] #23932: Support for remove_post_type_support() in attachment post type

WordPress Trac noreply at wordpress.org
Wed Apr 3 22:07:02 UTC 2013


#23932: Support for remove_post_type_support() in attachment post type
-------------------------------+-------------------------
 Reporter:  flyingtrolleycars  |       Type:  enhancement
   Status:  new                |   Priority:  normal
Milestone:  Awaiting Review    |  Component:  Media
  Version:  3.5.1              |   Severity:  normal
 Keywords:                     |
-------------------------------+-------------------------
 In the past it was possible to remove certain fields from the media editor
 by hooking "attachment_fields_to_edit" and unset'ing the fields you didn't
 want included (e.g. caption).

 After the media library got the major rework in WP3.5 its longer possible
 to remove those fields.

 I believe that since the attachment post type has been more closely lined
 up to normal posts it should support remove_post_type_support() et al.

 The easiest (and probably popular) case for this is removing the editor.
 I believe this code should do the trick:

 {{{
 #!php
 remove_post_type_support( 'attachment', 'editor' );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23932>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list