From 28963e897c492e7cfabcfef5bb7776cdd082b46b Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Thu, 24 Sep 2020 03:10:26 +0000 Subject: [PATCH] Documentation: Add 'template' arg documentation Add inline documentation for the 'template' arg accepted by register_post_type(). Props milana_cap. See #46261. git-svn-id: https://develop.svn.wordpress.org/trunk@49041 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 9456bec763..0fda61ab85 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -1407,6 +1407,9 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) * to the user will *not* be trashed or deleted. If not set (the default), * posts are trashed if post_type_supports('author'). Otherwise posts * are not trashed or deleted. Default null. + * @type array $template Array of blocks to use as the default initial state for an editor + * session. Each item should be an array containing block name and + * optional attributes. * @type bool $_builtin FOR INTERNAL USE ONLY! True if this post type is a native or * "built-in" post_type. Default false. * @type string $_edit_link FOR INTERNAL USE ONLY! URL segment to use for edit link of