woocommerce_trash_product_variation

woocommerce_trash_product_variation

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_trash_product_variation') is found 1 times:

  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 679
    					wp_delete_post( $variation_id, true );
    					do_action( 'woocommerce_delete_product_variation', $variation_id );
    				} else {
    					wp_trash_post( $variation_id );
    					do_action( 'woocommerce_trash_product_variation', $variation_id );
    				}
    			}
    		}
    
    		delete_transient( 'wc_product_children_' . $product_id );
    	}