WordPress.org

Make WordPress Core

Changeset 49041


Ignore:
Timestamp:
09/24/2020 03:10:26 AM (12 months ago)
Author:
noisysocks
Message:

Documentation: Add 'template' arg documentation

Add inline documentation for the 'template' arg accepted by
register_post_type().

Props milana_cap.
See #46261.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r49000 r49041  
    14081408 *                                              posts are trashed if post_type_supports('author'). Otherwise posts
    14091409 *                                              are not trashed or deleted. Default null.
     1410 *     @type array       $template              Array of blocks to use as the default initial state for an editor
     1411 *                                              session. Each item should be an array containing block name and
     1412 *                                              optional attributes.
    14101413 *     @type bool        $_builtin              FOR INTERNAL USE ONLY! True if this post type is a native or
    14111414 *                                              "built-in" post_type. Default false.
Note: See TracChangeset for help on using the changeset viewer.