Core Function
View Source on Trac ↗ inject_ignored_hooked_blocks_metadata_attributes()
inject_ignored_hooked_blocks_metadata_attributes( mixed $changes, mixed $deprecated = null ) Inject ignoredHookedBlocks metadata attributes into a template or template part.
Parameters 1 required
| Name / Type | Description |
|---|---|
| stdClass | $changes An object representing a template or template part prepared for inserting or updating the database. Required |
| $deprecated WP_REST_Request | Deprecated. Not used. |
Return Value
((stdClass)
| WP_Error) The updated object representing a template or template part.
Function Information
Since Version
6.5.0
Source File
wp-includes/block-template-utils.php
Advertisement