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, insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata, update_ignored_hooked_blocks_postmeta, block_core_navigation_set_ignored_hooked_blocks_metadata, wp_pre_kses_block_attributes

Top Google Results

User discussions

wpseek mobile