Changeset 48629 for trunk/src/wp-includes/class-wp-block-type-registry.php
- Timestamp:
- 07/26/2020 10:15:20 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-type-registry.php
r47754 r48629 35 35 * @since 5.0.0 36 36 * 37 * @param string|WP_Block_Type $name Block type name including namespace, or alternatively a38 * complete WP_Block_Type instance. In case a WP_Block_Type37 * @param string|WP_Block_Type $name Block type name including namespace, or alternatively 38 * a complete WP_Block_Type instance. In case a WP_Block_Type 39 39 * is provided, the $args parameter will be ignored. 40 40 * @param array $args { 41 * Optional. Array of block type arguments. Any arguments may be defined, however the 42 * ones described below are supported by default. Default empty array. 41 * Optional. Array of block type arguments. Accepts any public property of `WP_Block_Type`. 42 * Any arguments may be defined, however the ones described below are supported by default. 43 * Default empty array. 43 44 * 44 45 * @type callable $render_callback Callback used to render blocks of this block type. 45 46 * @type array $attributes Block attributes mapping, property name to schema. 46 * Accepts any public property of `WP_Block_Type`.47 47 * } 48 48 * @return WP_Block_Type|false The registered block type on success, or false on failure. … … 95 95 * @since 5.0.0 96 96 * 97 * @param string|WP_Block_Type $name Block type name including namespace, or alternatively a98 * complete WP_Block_Type instance.97 * @param string|WP_Block_Type $name Block type name including namespace, or alternatively 98 * a complete WP_Block_Type instance. 99 99 * @return WP_Block_Type|false The unregistered block type on success, or false on failure. 100 100 */
Note: See TracChangeset
for help on using the changeset viewer.