Created
July 29, 2018 08:52
-
-
Save malsubrata/9c00d42bb78568ba1ada8c88ff905154 to your computer and use it in GitHub Desktop.
Cashback display patch for avada theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('init', 'init_woo_wallet_hooks'); | |
function init_woo_wallet_hooks(){ | |
if(!is_admin() && class_exists('Woo_Wallet_Frontend')){ | |
remove_action('woocommerce_before_single_product_summary', array(Woo_Wallet_Frontend::instance(), 'display_cashback'), 15); | |
add_action('woocommerce_single_product_summary', array(Woo_Wallet_Frontend::instance(), 'display_cashback'), 15); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment