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.

    #woocommerce-hook.php
    add_action('init', 'woocommerce_download_product');
    
    #audio.php
    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

    http://wordpress.org/plugins/woocommerce/

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