WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Remove Download Product Hook in custom page (1 post)

  1. Ithrendil
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.