Core Function
View Source on Trac ↗ _add_block_template_info()
_add_block_template_info( mixed $template_item ) Attempts to add custom template information to the template item.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $template_item array | Template to add information to (requires 'slug' field). Required |
Return Value
(array)
Template item.
Function Information
Since Version
5.9.0
Source File
wp-includes/block-template-utils.php
Advertisement