Changeset 50419 for trunk/src/wp-includes/class-wp-block-type-registry.php
- Timestamp:
- 02/23/2021 07:16:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-type-registry.php
r48629 r50419 35 35 * @since 5.0.0 36 36 * 37 * @see WP_Block_Type::__construct() 38 * 37 39 * @param string|WP_Block_Type $name Block type name including namespace, or alternatively 38 40 * a complete WP_Block_Type instance. In case a WP_Block_Type 39 41 * is provided, the $args parameter will be ignored. 40 * @param array $args { 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. 44 * 45 * @type callable $render_callback Callback used to render blocks of this block type. 46 * @type array $attributes Block attributes mapping, property name to schema. 47 * } 42 * @param array $args Optional. Array of block type arguments. Accepts any public property 43 * of `WP_Block_Type`. See WP_Block_Type::__construct() for information 44 * on accepted arguments. Default empty array. 48 45 * @return WP_Block_Type|false The registered block type on success, or false on failure. 49 46 */
Note: See TracChangeset
for help on using the changeset viewer.