Add Gateway Donation Field
/** * This snippet shows how to enable an email tag for the gateway_label * donation field. * * This same pattern can be used to enable email tags for other * donation fields. Find a list of the default…Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * This snippet shows how to enable an email tag for the gateway_label * donation field. * * This same pattern can be used to enable email tags for other * donation fields. Find a list of the default…Continue reading
/** * Right after a donation is made, this sends a notification to admin if * the donation is pending AND it was made in offline mode. * * @param int $donation_id * @return boolean */ function en_send_donation_notification_for_pending_offline( $donation_id )…Continue reading
/** * This example shows how you can add a new field to your donation-related * emails which shows the offline payment instructions for offline donations. */ /** * Register the extra field. * * @param array $fields * @param…Continue reading
/** * If you want to add an email tag for an existing donation field, * you can use the code sample below. * * To add a completely custom email tag field, you can either register * a field…Continue reading
/** * This example shows how to change the output of the line items * displayed by the donation summary in email receipts. In this example, * we simply display the total amount donated on each line. * * @param…Continue reading
/** * This example shows how you can add a new campaign field to be displayed * in Charitable emails related to campaigns. */ /** * Register the extra field. * * @param array $fields * @param Charitable_Email $email *…Continue reading
/** * Add CC/BCC headers to Charitable emails. * * @param string $headers The default email headers. * @param Charitable_Email $email The email object. * @return string */ function ed_charitable_add_email_headers( $headers, $email ) { /** * If you would only…Continue reading
/** * Right after a donation is made, this sends the donation receipt to * the donor if the donation is pending AND it was made in offline mode. * * @param int $donation_id * @return boolean */ function en_send_donation_receipt_for_pending_offline(…Continue reading
/** * Filter the email footer text & link. * * @param string $text The default text. * @return string */ function ed_charitable_change_email_footer_text( $text ) { $text = ‘Your footer text’; $link = home_url(); return ‘‘ . $text . ‘Continue reading
/** * In this example, a new email field is added which can be used both in * campaign emails and donation emails. The field gets a value for a specific * campaign, which in the case of a donation-specific…Continue reading