Skip to content

Instantly share code, notes, and snippets.

@jhimross
Created February 25, 2022 09:56
Show Gist options
  • Save jhimross/07a9174f38348fe15640a4fc9f1d4cd8 to your computer and use it in GitHub Desktop.
Save jhimross/07a9174f38348fe15640a4fc9f1d4cd8 to your computer and use it in GitHub Desktop.
Fix Linked Variation Displaying in Header When Using Divi theme
/**
* 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