Created
February 25, 2022 09:56
-
-
Save jhimross/07a9174f38348fe15640a4fc9f1d4cd8 to your computer and use it in GitHub Desktop.
Fix Linked Variation Displaying in Header When Using Divi theme
This file contains 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
/** | |
* Iconic LV: remove default LV buttons as they are added manually in divi builder. | |
* | |
* @return void | |
*/ | |
function iconic_wlv_remove_default_lv_buttons() { | |
remove_action( 'woocommerce_single_product_summary', array( 'Iconic_WLV_Product', 'output_linked_variations' ), 25 ); | |
} | |
add_action( 'init', 'iconic_wlv_remove_default_lv_buttons' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment