Filters the parsed block array for a given hooked block.
$parsed_hooked_block, $hooked_block_type, $relative_position, $parsed_anchor_block, $context
Sortie :
@param array|null $parsed_hooked_block The parsed block array for the given hooked block type, or null to suppress the block. @param string $hooked_block_type The hooked block type name. @param string $relative_position The relative position of the hooked block. @param array $parsed_anchor_block The anchor block, in parsed block array format. @param WP_Block_Template|WP_Post|array $context The block template, template part, post object,
// Modifier la valeur avec le filtre 'hooked_block'
add_filter('hooked_block', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($parsed_hooked_block) {
// Modifier la valeur
return $parsed_hooked_block;
}
Chargement des actualités...