WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #17620, comment 3


Ignore:
Timestamp:
05/30/11 18:08:29 (3 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17620, comment 3

    v1 v2  
    33Similarly, {{{get_post_types( array( 'supports' => array( 'title', 'editor' ) )}}} will only match post types that only support 'title' and 'editor'. No more, no less. 
    44 
    5 Since there's no elegant way to define the operator between elements in the 'supports' array, you will just have to loop through each of them, using post_type_supports(),  
     5Since there's no elegant way to define the operator between elements in the 'supports' array, you will just have to loop through all post types, using post_type_supports() to filter them.