Support » Plugin: WooCommerce » Remove Download Product Hook in custom page

  • Hi,
    I try to remove the woocommerce_download_product hook in a custom page i’ve created.

    add_action('init', 'woocommerce_download_product');
    add_action( 'init', 'remove_download_product' );
    function remove_download_product() {
        remove_action( 'init', 'woocommerce_download_product' );

    So in audio.php i try to make it with add_action, but even if i only do remove_action not wrapped it doesn’t work!

    Thx to help me

  • The topic ‘Remove Download Product Hook in custom page’ is closed to new replies.