inject_ignored_hooked_blocks_metadata_attributes
- %1$s is private and should not be used in themes or plugins directly.
inject_ignored_hooked_blocks_metadata_attributes ( $changes, $deprecated = null )
Access:Parameters:- (stdClass) changes An object representing a template or template part prepared for inserting or updating the database.
- (WP_REST_Request) deprecated Deprecated. Not used.
Returns:- (stdClass|WP_Error) The updated object representing a template or template part.
Defined at: - Introduced in WordPress: 6.5.0
- Deprecated in WordPress: —
Description
Inject ignoredHookedBlocks metadata attributes into a template or template part.Given an object that represents a `wp_template` or `wp_template_part` post object
prepared for inserting or updating the database, locate all blocks that have
hooked blocks, and inject a `metadata.ignoredHookedBlocks` attribute into the anchor
blocks to reflect the latter.