Copy Donation Receipt To Admin

/** * Send the donation receipt to the site admin as well. * * @param string|string[] $recipients * @return string[] $recipients */ function en_copy_donation_receipt_to_admin( $recipients ) { /** * If it isn’t an array, cast it to one. */ if…Continue reading

Disable Donation Receipt For Offline Donations

/** * Disable the donation receipt email for offline donations. */ add_filter( ‘charitable_send_donation_receipt’, /** * Our callback function. * * @param boolean $send_email Whether to send the email. * @param Charitable_Donation $donation The donation object. * @return boolean Whether to…Continue reading

Add Custom Donation Field

/** * This example shows how you can add a new donation field to be displayed * in Charitable emails related to donations. */ /** * Register the extra field. * * @param array $fields * @param Charitable_Email $email *…Continue reading

Add Email Headers

/** * 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

Email: Change Footer Text

/** * 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

Add User Dashboard Menu

/** * By default, Charitable includes a User Dashboard menu, but * this is not automatically added unless the theme builds * in support for it. * * If you want to include the User Dashboard menu at the top…Continue reading

Load Template Files In Admin

/** * Load Charitable template files in the admin area. * * Some plugins or themes attempt to run shortcodes in the admin * area, which can cause a fatal error with Charitable. The core * plugin attempts to avoid…Continue reading