Update phpdoc to note that the default for public is false. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12898 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
739fd7a3b8
commit
858e02d0d4
@ -685,7 +685,7 @@ function get_post_types( $args = array(), $output = 'names' ) {
|
||||
* Optional $args contents:
|
||||
*
|
||||
* label - A descriptive name for the post type marked for translation. Defaults to $post_type.
|
||||
* public - Whether posts of this type should be shown in the admin UI. Defaults to true.
|
||||
* public - Whether posts of this type should be shown in the admin UI. Defaults to false.
|
||||
* exclude_from_search - Whether to exclude posts with this post type from search results. Defaults to true.
|
||||
* inherit_type - The post type from which to inherit the edit link and capability type. Defaults to none.
|
||||
* capability_type - The post type to use for checking read, edit, and delete capabilities. Defaults to "post".
|
||||
|
Loading…
Reference in New Issue
Block a user