Last active
December 7, 2017 02:03
-
-
Save kenmasters/b3cbc0eb8bf7bd9e0ccf2f3ccea563ce to your computer and use it in GitHub Desktop.
Option to remove or show product order summary when using {all_fields} merge tag
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
# Docs: https://docs.gravityforms.com/gform_display_product_summary/ | |
# Disable for all forms | |
add_filter( 'gform_display_product_summary', '__return_false' ); | |
# Disable for a specific form | |
add_filter( 'gform_display_product_summary', function( $display_product_summary, $field, $form, $entry ) { | |
return $form['id'] == 10 ? false : $display_product_summary; | |
}, 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Product Summary Example Screenshot