[wp-trac] [WordPress Trac] #17620: get_post_types check for supporting title

WordPress Trac wp-trac at lists.automattic.com
Mon May 30 18:10:52 UTC 2011


#17620: get_post_types check for supporting title
--------------------------+-------------------------
 Reporter:  GaryJ         |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Post Types    |     Version:  3.2
 Severity:  normal        |  Resolution:  worksforme
 Keywords:  close         |
--------------------------+-------------------------

Comment (by scribu):

 Example:

 {{{
 $filtered = array();
 foreach( get_post_types() as $post_type ) {
   if ( post_type_supports( $post_type, 'title' ) ) {
     $filtered[] = $post_type;
   }
 }
 }}}

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


More information about the wp-trac mailing list