[wp-trac] [WordPress Trac] #15323: Filter by post format in wp-admin/edit

WordPress Trac noreply at wordpress.org
Sun Mar 3 22:39:11 UTC 2013


#15323: Filter by post format in wp-admin/edit
--------------------------+------------------
 Reporter:  PeteMall      |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  Post Formats  |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------
Changes (by maor):

 * cc: maorhaz@… (added)


Comment:

 While I do like this idea, I'd suggest a way for users who are not
 interested in this additional dropdown to be able to easily hide it. We
 can do it by simply adding a filter to the `post_type_supports` check ,
 that is automatically set to true. Here's what I mean:


 {{{
 ...

 if ( post_type_supports( $this->screen->post_type, 'post-formats' ) &&
 apply_filters( 'show_post_formats_dropdown', true ) ) {

 ...
 }}}

 Or we can be a bit more specific and allow extra control, up to a level of
 a post type.

 {{{
 ...

 if ( post_type_supports( $this->screen->post_type, 'post-formats' ) &&
 apply_filters(
 "show_post_formats_dropdown_for_{$this->screen->post_type}", true ) ) {

 ...
 }}}

 What do you guys think about this approach?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15323#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list