woocommerce_block_template_after_add_hide_condition
Action called after a hide condition is added to a block.
Usage
add_action( 'woocommerce_block_template_after_add_hide_condition', 'wp_kama_woocommerce_block_template_after_add_hide_condition_action' );
/**
* Function for `woocommerce_block_template_after_add_hide_condition` action-hook.
*
* @param BlockInterface $block The block.
*
* @return void
*/
function wp_kama_woocommerce_block_template_after_add_hide_condition_action( $block ){
// action...
}
- $block(BlockInterface)
- The block.
Changelog
| Since 8.4.0 | Introduced. |
Where the hook is called
woocommerce_block_template_after_add_hide_condition
woocommerce/src/Internal/Admin/BlockTemplates/AbstractBlock.php 272
do_action( 'woocommerce_block_template_after_add_hide_condition', $this );