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