From 2e054e28057c1484714ec0b7449262537b774202 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@13985 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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