Skip to content

Instantly share code, notes, and snippets.

@malsubrata
Created July 29, 2018 08:52
Show Gist options
  • Save malsubrata/9c00d42bb78568ba1ada8c88ff905154 to your computer and use it in GitHub Desktop.
Save malsubrata/9c00d42bb78568ba1ada8c88ff905154 to your computer and use it in GitHub Desktop.
Cashback display patch for avada theme
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