From e80747265fa3e84715ec911a65b7664293aeb062 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 28 Jun 2016 06:31:05 +0000 Subject: [PATCH] Docs: Add more complete documentation for the `$supports` argument in `register_post_type()`. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@37883 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index dbb8925533..c33820b0e1 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -958,8 +958,14 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) * See get_post_type_capabilities(). * @type bool $map_meta_cap Whether to use the internal default meta capability handling. * Default false. - * @type array $supports An alias for calling add_post_type_support() directly. Defaults to array - * containing 'title' & 'editor'. + * @type array $supports Core feature(s) the post type supports. Serves as an alias for calling + * add_post_type_support() directly. Core features include 'title', + * 'editor', 'comments', 'revisions', 'trackbacks', 'author', 'excerpt', + * 'page-attributes', 'thumbnail', 'custom-fields', and 'post-formats'. + * Additionally, the 'revisions' feature dictates whether the post type + * will store revisions, and the 'comments' feature dictates whether the + * comments count will show on the edit screen. Defaults is an array + * containing 'title' and 'editor'. * @type callable $register_meta_box_cb Provide a callback function that sets up the meta boxes for the * edit form. Do remove_meta_box() and add_meta_box() calls in the * callback. Default null.