woocommerce_delete_product_variation
Usage
add_action( 'woocommerce_delete_product_variation', 'wp_kama_woocommerce_delete_product_variation_action' ); /** * Function for `woocommerce_delete_product_variation` action-hook. * * @param $variation_id * * @return void */ function wp_kama_woocommerce_delete_product_variation_action( $variation_id ){ // action... }
- $variation_id
- -
Where the hook is called
woocommerce_delete_product_variation
woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php 676
do_action( 'woocommerce_delete_product_variation', $variation_id );