Make WordPress Core

Changeset 37883


Ignore:
Timestamp:
06/28/2016 06:31:05 AM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Add more complete documentation for the $supports argument in register_post_type().

See #32246.

File:
1 edited

Legend:

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

    r37882 r37883  
    959959 *     @type bool        $map_meta_cap         Whether to use the internal default meta capability handling.
    960960 *                                             Default false.
    961  *     @type array       $supports             An alias for calling add_post_type_support() directly. Defaults to array
    962  *                                             containing 'title' & 'editor'.
     961 *     @type array       $supports             Core feature(s) the post type supports. Serves as an alias for calling
     962 *                                             add_post_type_support() directly. Core features include 'title',
     963 *                                             'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt',
     964 *                                             'page-attributes', 'thumbnail', 'custom-fields', and 'post-formats'.
     965 *                                             Additionally, the 'revisions' feature dictates whether the post type
     966 *                                             will store revisions, and the 'comments' feature dictates whether the
     967 *                                             comments count will show on the edit screen. Defaults is an array
     968 *                                             containing 'title' and 'editor'.
    963969 *     @type callable    $register_meta_box_cb Provide a callback function that sets up the meta boxes for the
    964970 *                                             edit form. Do remove_meta_box() and add_meta_box() calls in the
Note: See TracChangeset for help on using the changeset viewer.