Skip to content

Instantly share code, notes, and snippets.

@kenmasters
Last active December 7, 2017 02:03
Show Gist options
  • Save kenmasters/b3cbc0eb8bf7bd9e0ccf2f3ccea563ce to your computer and use it in GitHub Desktop.
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
# 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 );
@kenmasters
Copy link
Author

Product Summary Example Screenshot

gform product summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment