Add `@since` docs for the `show_ui` argument in `register_post_type()`.

See #33763


git-svn-id: https://develop.svn.wordpress.org/trunk@34353 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-09-20 09:04:21 +00:00
parent d3031d522e
commit fe80bec9ee
1 changed files with 3 additions and 1 deletions

View File

@ -876,6 +876,8 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
* parameter), along with a string for the post type name. * parameter), along with a string for the post type name.
* *
* @since 2.9.0 * @since 2.9.0
* @since 3.0.0 The `show_ui` argument is now enforced on the new post screen.
* @since 4.4.0 The `show_ui` argument is now enforced on the post type listing screen and post editing screen.
* *
* @global array $wp_post_types List of post types. * @global array $wp_post_types List of post types.
* @global WP_Rewrite $wp_rewrite Used for default feeds. * @global WP_Rewrite $wp_rewrite Used for default feeds.
@ -907,7 +909,7 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
* * ?{post_type_key}={single_post_slug} * * ?{post_type_key}={single_post_slug}
* * ?{post_type_query_var}={single_post_slug} * * ?{post_type_query_var}={single_post_slug}
* If not set, the default is inherited from $public. * If not set, the default is inherited from $public.
* @type bool $show_ui Whether to generate a default UI for managing this post type in the * @type bool $show_ui Whether to generate and allow a UI for managing this post type in the
* admin. Default is value of $public. * admin. Default is value of $public.
* @type bool $show_in_menu Where to show the post type in the admin menu. To work, $show_ui * @type bool $show_in_menu Where to show the post type in the admin menu. To work, $show_ui
* must be true. If true, the post type is shown in its own top level * must be true. If true, the post type is shown in its own top level