From 23858b35c2e38c6da5be5ca0d38b1dfaaae523a8 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 4 Apr 2010 04:14:17 +0000 Subject: [PATCH] Add docs to add_post_type_support(). fixes #12644, props sillybean. git-svn-id: https://develop.svn.wordpress.org/trunk@13985 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index cfc4f7e11e..17db722514 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -878,6 +878,13 @@ function register_post_type($post_type, $args = array()) { /** * Register support of certain features for a post type. * + * All features are directly associated with a functional area of the edit screen, such as the + * editor or a meta box: 'title', 'editor', 'comments', 'revisions', 'trackbacks', 'author', + * 'excerpt', 'page-attributes', 'thumbnail', and 'custom-fields'. + * + * Additionally, the 'revisions' feature dictates whether the post type will store revisions, + * and the 'comments' feature dicates whether the comments count will show on the edit screen. + * * @since 3.0.0 * @param string $post_type The post type for which to add the feature * @param string|array $feature the feature being added, can be an array of feature strings or a single string