mirror of
git://develop.git.wordpress.org/
synced 2025-04-13 08:32:10 +02:00
Docs: Include @since
in register_block_type
definition
See #53233. git-svn-id: https://develop.svn.wordpress.org/trunk@50928 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6ad4e34c54
commit
a805b90f45
@ -329,6 +329,7 @@ function register_block_type_from_metadata( $file_or_folder, $args = array() ) {
|
||||
* the metadata stored in the `block.json` file.
|
||||
*
|
||||
* @since 5.0.0
|
||||
* @since 5.8.0 First param accepts a path to the `block.json` file.
|
||||
*
|
||||
* @param string|WP_Block_Type $block_type Block type name including namespace, or alternatively
|
||||
* a path to the JSON file with metadata definition for the block,
|
||||
|
Loading…
x
Reference in New Issue
Block a user