Skip to content

Instantly share code, notes, and snippets.

@isaumya
Created September 9, 2016 18:12
Show Gist options
  • Save isaumya/05d9e82b90f1def992cb6a3600655df5 to your computer and use it in GitHub Desktop.
Save isaumya/05d9e82b90f1def992cb6a3600655df5 to your computer and use it in GitHub Desktop.
Change the the Product Label to Custom Text - Gravity Forms
<?php
//* Changing Price Label in Gravity Forms - Supports the latest version too
//* in gform_product_price_6 the 6 denoted to the FORM ID
add_filter( 'gform_product_price_6', function( $sublabel, $form_id ) {
return 'Donation Amount';
}, 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment