Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spivurno/f218b17f4b29552e2fbeddf9575d9cc0 to your computer and use it in GitHub Desktop.
Save spivurno/f218b17f4b29552e2fbeddf9575d9cc0 to your computer and use it in GitHub Desktop.
<?php
/**
* Gravity Perks // Conditional Logic Dates // Fix Conflict w/ WC GF Product Add-ons
* http://gravitywiz.com/documentation/gravity-forms-conditional-logic-dates/
*/
add_filter( 'woocommerce_get_cart_item_from_session', function( $return ) {
add_filter( 'gform_form_post_get_meta', function( $form ) {
if( class_exists( 'GP_Conditional_Logic_Dates' ) ) {
$form = GP_Conditional_Logic_Dates::$instance->modify_frontend_form_object( $form );
}
return $form;
} );
return $return;
}, 9 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment