Charitable Documentation

Learn how to make the most of Charitable with clear, step-by-step instructions.

The Email Fields API

The Email Fields API was introduced in version 1.5 and provides a cleaner way to add new email tags or modify existing ones.

Defining a Field

An email field is defined as an array with a few arguments, and a key which is used for the show parameter in the [charitable_email] shortcode.

Arguments

  • description: The description that will be shown for the email tag.
  • preview: The placeholder value that will be used for this email tag in email previews.
  • callback: A function that will be executed to get the tag value for a particular email.
  • value: A fixed value for the email tag. If this is set, callback will not be used and is not required.

In addition, an email field has a key which will be used when the tag is added.

Callback arguments

The callback function will receive three arguments:

  • $value: The default value (an empty string). This is provided primarily for backwards-compatibility purposes.
  • $args: The shortcode arguments. This will always include the show parameter but may include other arguments if these are applicable to the email tag.
  • $email: An instance of Charitable_Email. You can use this to get the objects associated with the email (usually one of Charitable_Campaign, Charitable_Donation or Charitable_User).

Adding a Campaign email field

Campaign email fields can be added using the charitable_email_campaign_fields filter:

function ed_charitable_email_campaign_field_callback( $value, $args, $email ) {
    $campaign = $email->get_campaign();

    return $campaign->get( 'some_field' );
}

function ed_charitable_add_email_campaign_field( $fields ) {
    $fields['some_field'] = array(
        'description' => 'A description of this field',                    
        'preview'     => 'Placeholder value',
        'callback'    => 'ed_charitable_email_campaign_field_callback',
    );

    return $fields;
}

add_filter( 'charitable_email_campaign_fields', 'ed_charitable_add_email_campaign_field' );

Adding a Donation email field

Donation email fields can be addd using the charitable_email_donation_fields filter:

function ed_charitable_email_donation_field_callback( $value, $args, $email ) {
    $donation = $email->get_donation();

    return $donation->get( 'some_field' );
}

function ed_charitable_add_email_donation_field( $fields ) {
    $fields['some_field'] = array(
        'description' => 'A description of this field',                    
        'preview'     => 'Placeholder value',
        'callback'    => 'ed_charitable_email_donation_field_callback',
    );

    return $fields;
}

add_filter( 'charitable_email_donation_fields', 'ed_charitable_add_email_donation_field' );

Adding a User email field

Defining a new user email field follows the exact same process, but with the charitable_email_user_fields filter:

function ed_charitable_email_user_field_callback( $value, $args, $email ) {
    $user = $email->get_user();

    return $user->get( 'some_field' );
}

function ed_charitable_add_email_user_field( $fields ) {
    $fields['some_field'] = array(
        'description' => 'A description of this field',                    
        'preview'     => 'Placeholder value',
        'callback'    => 'ed_charitable_email_user_field_callback',
    );

    return $fields;
}

add_filter( 'charitable_email_user_fields', 'ed_charitable_add_email_user_field' );

Modifying Existing Email Fields

Existing email fields can also be changed with these filters. For example, you can use this to change the callback for an existing tag, or to edit the description.

Changing a field’s callback

function ed_charitable_donor_address_email_field_callback( $value, $args, $email ) {
    // Return the donor's address.
}

function ed_charitable_set_donor_address_email_field_callback( $fields ) {
    $fields['donor_address']['callback'] = 'ed_charitable_donor_address_email_field_callback';
    return $fields;
}

add_filter( 'charitable_email_donation_fields', 'ed_charitable_set_donor_address_email_field_callback' );

Changing a field’s description

function ed_charitable_set_user_login_email_field_description( $fields ) {
    $fields['user_login']['description'] = 'My user login description';
    return $fields;
}

add_filter( 'charitable_email_donation_fields', 'ed_charitable_set_user_login_email_field_description' );

Still have questions? We’re here to help!

Last Modified:

What's New In Charitable

View The Latest Updates
🔔 Subscribe to get our latest updates
📧 Subscribe to Emails

Email Subscription

Join our Newsletter

We won’t spam you. We only send an email when we think it will genuinely help you. Unsubscribe at any time!

Improvement Payments

💳 New Braintree Features For Your European Donors

If your nonprofit serves international supporters, credit cards aren’t always their preferred way to give. With the release of the Braintree addon version 1.3.0, you can now empower your European donors with the payment methods they trust most.

What’s New:

🌍 Six New European Payment Methods: Seamlessly accept popular bank-based options like iDEAL (Netherlands), Bancontact (Belgium), BLIK (Poland), EPS (Austria), Przelewy24 (Poland), and MyBank (Italy/Portugal).

⚡ Frictionless Donor Experience: No manual card entries required. Donors safely authenticate directly with their own bank in a secure popup for lightning-fast contributions.

⚙️ Automatic Currency Sync: Skip complex configuration. The addon intelligently displays the correct local payment buttons based automatically on your site’s currency (EUR or PLN).

Ready to scale your global reach? Update to Braintree 1.3.0 today!

Campaigns New

⏳ Campaign Countdown: Drive Urgency and Lift Donations

Urgency is one of the most powerful tools in fundraising! Meet Campaign Countdown—a live, real-time timer built to turn procrastination into immediate generosity.

campaign_countdown_animation

What’s New:

⏱️ Live, Real-Time Urgency: Beautifully track days, hours, minutes, and seconds down to your campaign’s deadline w/ live-updating visual countdowns.

🎨 Tailored to Your Look: Choose between Boxed bordered tiles or a clean, single-line Inline display. Match your theme instantly with font and deep color controls.

🛠️ Place it Anywhere: Drop the countdown anywhere you like using the Campaign Builder field, a dedicated Gutenberg block, or a simple shortcode.

🚨 Smart Expiry Actions: Total control over the end state—choose to automatically replace the timer with a custom message, freeze it at zero, and more.

Improvement Migrations

↔️ Importing From GiveWP, Donorbox, GiveButter… even CSV!

Whether you’re migrating from another platform or consolidating your records, moving your data to Charitable is now faster and more flexible than ever. We’ve streamlined the process so you can bring over your entire fundraising history in just a few clicks.

🔄 Native GiveWP, Donorbox, & GiveButter Support: Switching from a major platform? Our dedicated migration tools handle the heavy lifting, automatically mapping your donors and donations directly into Charitable—no technical skills required.

📂 Universal CSV Import: Moving from a custom system or a specialized CRM? If you can export it to a CSV, you can import it here. Our smart mapping tool lets you align your columns to Charitable fields like names, emails, phone numbers, and addresses in seconds.

Instant Donor Profiles & Custom Tags: Automatically create rich donor profiles and bring in custom tags to keep your data organized. Segment and engage your supporters from day one with a clean, professional database structure.


Ready to make the switch?

Check out our GiveWP Migration Guide

Learn more about our Import Tools

Improvement Payments

💳 New Braintree Features For Your European Donors

With the release of Braintree addon version 1.3.0, you can now empower your European donors with the payment methods they trust and prefer, making giving seamless for international supporters.

🌍 Six New European Payment Methods: Support popular local options like iDEAL (Netherlands), Bancontact (Belgium), BLIK (Poland), and more to meet donors where they are.

⚡ Frictionless Donor Experience: These bank-based methods allow donors to authenticate directly with their own bank in a secure popup… no credit card numbers required.

⚙️ Automatic Currency Sync: No complex setup needed. The builder automatically displays the correct payment buttons based on your site’s currency (EUR or PLN), ensuring a relevant experience for every visitor.

Campaigns New

🖼️ Campaign Featured Images: Pro-Level Visuals Made Simple

With the new Campaign Featured Image setting in our visual builder, you now have a single, dedicated place to manage how your fundraisers look across your entire site and beyond.

🖼️ One Image, Everywhere: Set a primary thumbnail that automatically syncs to campaign grids, lists, and shortcodes—no more relying on layout order.

📱 Social Sharing Optimized: Easily upload images at the perfect size to ensure your campaigns look stunning and professional when shared on social media.

🔍 SEO & Accessibility Ready: Add custom alt text directly within the builder to improve search rankings and ensure your mission is accessible to every supporter.