apply_block_hooks_to_content
- %1$s is private and should not be used in themes or plugins directly.
apply_block_hooks_to_content ( $content, $context, $callback = 'insert_hooked_blocks' )
Access:Parameters:- (string) content Serialized content.
- (WP_Block_Template|WP_Post|array) context A block template, template part, `wp_navigation` post object, or pattern that the blocks belong to.
- (callable) callback A function that will be called for each block to generate the markup for a given list of blocks that are hooked to it. Default: 'insert_hooked_blocks'.
Returns:- (string) The serialized markup.
Defined at: - Introduced in WordPress: 6.6.0
- Deprecated in WordPress: —
Description
Runs the hooked blocks algorithm on the given content.