Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mehul0810/bcf1cd5fc0fd0f1449d4dab2d2a450e8 to your computer and use it in GitHub Desktop.
Save mehul0810/bcf1cd5fc0fd0f1449d4dab2d2a450e8 to your computer and use it in GitHub Desktop.
<?php
function mg_update_product_description( $productDesc, $donationId ) {
// Do whatever you want to add using the Form Id or $_POST and update the product description and return it.
$purpose = give_get_meta( $donationId, 'purpose', true ); // `purpose` here is the name of the FFM field.
return $purpose;
}
add_filter( 'mggi88_update_product_description_text', 'mg_update_product_description', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment