Action called after a block is added to a block container. This action can be used to perform actions after a block is added to the block container, such as adding a dependent block.
$block
Sortie :
@param BlockInterface $block The block.
// Ajouter une fonction au hook action 'woocommerce_block_template_after_add_block'
add_action('woocommerce_block_template_after_add_block', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($block) {
// Votre code ici
error_log('Hook woocommerce_block_template_after_add_block déclenché');
}
Chargement des actualités...