woocommerce_delete_product_transients

woocommerce_delete_product_transients

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_delete_product_transients') is found 1 times:

  • /includes/wc-product-functions.php line 172
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
        // Increments the transient version to invalidate cache.
        WC_Cache_Helper::get_transient_version( 'product', true );
     
        do_action( 'woocommerce_delete_product_transients', $post_id );
    }
     
    /**
     * Delete all related products transients when a product is updated/created.
     * This is necessary because changing one product affects all related products too.
     *

See this hook used in plugins: