[wp-trac] [WordPress Trac] #18436: Retrieve post type information in XML-RPC

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 3 14:42:48 UTC 2012


#18436: Retrieve post type information in XML-RPC
-----------------------------+------------------------------
 Reporter:  nprasath002      |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  XML-RPC          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by markoheijnen):

 After some discussion in the IRC chat on 2 March I decided only to return
 the theme support for now. That shows if the WordPress installation
 supports.

 For all post type support you can include a new option that includes all
 post types with thumbnail support like the following code:
 {{{
 $posttype_supports = array();
 foreach ( get_post_types() as $post_type ) {
         if ( post_type_supports( $post_type, 'thumbnail' ) ) {
                 $posttype_supports[] = $post_type;
         }
 }
 }}}

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


More information about the wp-trac mailing list