Make WordPress Core


Ignore:
Timestamp:
03/23/2012 05:53:14 PM (11 years ago)
Author:
westi
Message:

XMLRPC: Add new wp.getPostType and wp.getPostTypes apis. See #18436 props maxcutler, markoheijnen and nprasath002.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r20216 r20271  
    13011301
    13021302/**
     1303 * Get all the post type features
     1304 *
     1305 * @since 3.4.0
     1306 * @param string $post_type The post type
     1307 * @return array
     1308 */
     1309
     1310function get_all_post_type_supports( $post_type ) {
     1311    global $_wp_post_type_features;
     1312
     1313    if ( isset( $_wp_post_type_features[$post_type] ) )
     1314        return $_wp_post_type_features[$post_type];
     1315
     1316    return array();
     1317}
     1318
     1319/**
    13031320 * Checks a post type's support for a given feature
    13041321 *
Note: See TracChangeset for help on using the changeset viewer.