Skip to content

Instantly share code, notes, and snippets.

@hmowais
Created December 2, 2019 10:10
Show Gist options
  • Save hmowais/3962f2a49307ad9dd5cfe4dea6c96863 to your computer and use it in GitHub Desktop.
Save hmowais/3962f2a49307ad9dd5cfe4dea6c96863 to your computer and use it in GitHub Desktop.
Remove Avada Hooks in Woocommerce
<?php
// https://theme-fusion.com/documentation/avada/woocommerce/override-avada-woocommerce-hooks/
function remove_woo_commerce_hooks() {
global $avada_woocommerce;
remove_action( 'woocommerce_single_product_summary', array( $avada_woocommerce, 'add_product_border' ), 19 );
}
add_action( 'after_setup_theme', 'remove_woo_commerce_hooks' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment