inject_ignored_hooked_blocks_metadata_attributes


inject_ignored_hooked_blocks_metadata_attributes ( $changes, $deprecated = null )

Access:
  • private
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:

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.

Related Functions

set_ignored_hooked_blocks_metadata, block_core_navigation_set_ignored_hooked_blocks_metadata, wp_pre_kses_block_attributes, get_block_core_avatar_border_attributes, wp_get_post_content_block_attributes

Top Google Results

User discussions

wpseek mobile