Skip to content

Instantly share code, notes, and snippets.

@matheuswd
Last active June 9, 2021 15:14
Show Gist options
  • Save matheuswd/34dc1cca433e5006fed5e63daaed1743 to your computer and use it in GitHub Desktop.
Save matheuswd/34dc1cca433e5006fed5e63daaed1743 to your computer and use it in GitHub Desktop.
Custom Description
<?php
// Make sure to use the legacy donation form to visualize the data
function stripe_custom_description($data) {
$posted_data = give_clean( filter_input_array( INPUT_POST ) );
print_r($posted_data);
die;
return 'My custom description here, ' . $data . ' ' . $posted_data;
}
add_filter( 'give_payment_gateway_donation_summary', 'stripe_custom_description', 10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment