mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Docs: Correct formatting for the description of some register_post_type() parameters.
Props audrasjb. Fixes #52836. git-svn-id: https://develop.svn.wordpress.org/trunk@50538 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d984b548c8
commit
3f7760b93e
@ -1422,20 +1422,20 @@ function get_post_types( $args = array(), $output = 'names', $operator = 'and' )
|
||||
* ?{query_var_string}={post_slug} will be valid.
|
||||
* @type bool $can_export Whether to allow this post type to be exported. Default true.
|
||||
* @type bool $delete_with_user Whether to delete posts of this type when deleting a user.
|
||||
* - If true, posts of this type belonging to the user will be moved
|
||||
* * If true, posts of this type belonging to the user will be moved
|
||||
* to Trash when the user is deleted.
|
||||
* - If false, posts of this type belonging to the user will *not*
|
||||
* * If false, posts of this type belonging to the user will *not*
|
||||
* be trashed or deleted.
|
||||
* - If not set (the default), posts are trashed if post type supports
|
||||
* * If not set (the default), posts are trashed if post type supports
|
||||
* the 'author' feature. 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. Default empty array.
|
||||
* @type string|false $template_lock Whether the block template should be locked if $template is set.
|
||||
* - If set to 'all', the user is unable to insert new blocks,
|
||||
* * If set to 'all', the user is unable to insert new blocks,
|
||||
* move existing blocks and delete blocks.
|
||||
* - If set to 'insert', the user is able to move existing blocks
|
||||
* * If set to 'insert', the user is able to move existing blocks
|
||||
* but is unable to insert new blocks and delete blocks.
|
||||
* Default false.
|
||||
* @type bool $_builtin FOR INTERNAL USE ONLY! True if this post type is a native or
|
||||
|
||||
Loading…
Reference in New Issue
Block a user