wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata › WordPress Function

Da6.6.0
Deprecaton/a
insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata ( $parsed_anchor_block, $relative_position, $hooked_blocks, $context )
Accedi:
  • private
Parametri: (4)
  • (array) $parsed_anchor_block The anchor block, in parsed block array format.
    Richiesto:
  • (string) $relative_position The relative position of the hooked blocks. Can be one of 'before', 'after', 'first_child', or 'last_child'.
    Richiesto:
  • (array) $hooked_blocks An array of hooked block types, grouped by anchor block and relative position.
    Richiesto:
  • (WP_Block_Template|WP_Post|array) $context The block template, template part, or pattern that the anchor block belongs to.
    Richiesto:
Ritorna:
  • (string)
Definito a:
Codex:

Returns the markup for blocks hooked to the given anchor block in a specific relative position and then adds a list of hooked block types to an anchor block's ignored hooked block types.

This function is meant for internal use only.


Sorgenti

function insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata( &$parsed_anchor_block, $relative_position, $hooked_blocks, $context ) {
	$markup  = insert_hooked_blocks( $parsed_anchor_block, $relative_position, $hooked_blocks, $context );
	$markup .= set_ignored_hooked_blocks_metadata( $parsed_anchor_block, $relative_position, $hooked_blocks, $context );

	return $markup;
}