Charitable Documentation

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

Hooks and filters in Automation Connect

Like all Charitable extensions, Charitable Automation Connect is designed to be developer-friendly, with hooks and filters that will help you customize it to your needs.

Paid Extension

Charitable Automation Connect is a premium plugin. Get it today with one of our plugin bundles.

Table of Contents

Filters

charitable_automation_connect_languages_directory

Added in version 1.0.0

Modify the directory where extension translations are stored.

Return Value

A string representing the path to the languages directory, relative to the wp-content/plugins directory.

Arguments

  • $directory (string)

    The language directory path. Defaults to charitable-automation-connect/languages.

charitable_webhook_subscription_failure_threshold

Added in version 1.0.0

Modify the number of times a webhook can fail to be delivered before its status is changed to Disabled.

Return Value

Integer. Defaults to 5.

Arguments

  • $threshold (int)

    The number of failures before a webhook subscription is disabled.

charitable_webhook_campaign_payload_field_value

Added in version 1.0.0

Modify the value returned for a specific field in Campaign payloads.

Return Value

Mixed.

Arguments

  • $value (mixed)

    The unfiltered value to show in the payload data.

  • $field_id (string)

    The field ID.

  • $campaign (Charitable_Campaign)

    An instance of Charitable_Campaign representing the campaign.

charitable_webhook_donation_payload_field_value

Added in version 1.0.0

Modify the value returned for a specific field in Donation payloads.

Return Value

Mixed.

Arguments

  • $value (mixed)

    The unfiltered value to show in the payload data.

  • $field_id (string)

    The field ID.

  • $donation (Charitable_Donation)

    An instance of Charitable_Donation representing the donation.

charitable_webhook_recurring_donation_payload_field_value

Added in version 1.0.0

Modify the value returned for a specific field in Recurring Donation payloads.

Return Value

Mixed.

Arguments

  • $value (mixed)

    The unfiltered value to show in the payload data.

  • $field_id (string)

    The field ID.

  • $recurring_donation (Charitable_Recurring_Donation)

    An instance of Charitable_Recurring_Donation representing the recurring donation.

charitable_webhook_campaign_payload_fields

Added in version 1.0.0

Filter the default list of campaign fields to include. Click here to see all the fields included by default.

Return Value

Array

Arguments

  • $fields (string[])

    Recurring donation fields to include.

Usage

add_filter( 'charitable_webhook_campaign_payload_fields', function( $fields ) {
    unset( $fields['creator_action_required'] );
    return $fields;
} );

charitable_webhook_donation_payload_fields

Added in version 1.0.0

Filter the default list of donation fields to include. Click here to see all the fields included by default.

Return Value

Array

Arguments

  • $fields (string[])

    Recurring donation fields to include.

Usage

add_filter( 'charitable_webhook_donation_payload_fields', function( $fields ) {
    unset( $fields['donor_comment'] );
    return $fields;
} );

charitable_webhook_recurring_donation_payload_fields

Added in version 1.0.0

Filter the default list of recurring donation fields to include. Click here to see all the fields included by default.

Return Value

Array

Arguments

  • $fields (string[])

    Recurring donation fields to include.

Usage

add_filter( 'charitable_webhook_recurring_donation_payload_fields', function( $fields ) {
    unset( $fields['recurring_renewal_date'] );
    return $fields;
} );

Filters added in 2.5.0

charitable_automation_connect_retry_max_attempts

Added in version 2.5.0

Total delivery attempts for a failed webhook, including the first.

Return Value

int

Arguments

  • $max (int)

    Default 4 (the first attempt plus three retries).

Usage

add_filter( 'charitable_automation_connect_retry_max_attempts', function() {
    return 6;
} );

charitable_automation_connect_retry_backoff

Added in version 2.5.0

Seconds to wait before the next retry.

Return Value

int

Arguments

  • $seconds (int)

    Default 60, 300, then 1800.

  • $attempt (int)

    The attempt that just failed.

charitable_automation_connect_is_retryable

Added in version 2.5.0

Whether a failed webhook delivery should be retried. Only Send Webhook deliveries are retried in 2.5.0.

Return Value

bool

Arguments

  • $retryable (bool)

    Default true for connection errors, timeouts, 408, 429, and 5xx responses; false for other 4xx.

  • $result (ActionResult)

    The run outcome.

charitable_automation_connect_alerts_enabled

Added in version 2.5.0

Turn failure alert emails on or off for an automation.

Return Value

bool

Arguments

  • $enabled (bool)

    Default true.

  • $subscription (\Charitable\Pro\AutomationConnect\Subscription)

    The automation.

Usage

add_filter( 'charitable_automation_connect_alerts_enabled', '__return_false' );

charitable_automation_connect_alert_threshold

Added in version 2.5.0

Failures in a row before the alert email is sent.

Return Value

int

Arguments

  • $threshold (int)

    Default 3.

  • $subscription (\Charitable\Pro\AutomationConnect\Subscription)

    The automation.

charitable_automation_connect_alert_throttle

Added in version 2.5.0

Minimum seconds between alert emails for one automation.

Return Value

int

Arguments

  • $window (int)

    Default one day.

  • $subscription (\Charitable\Pro\AutomationConnect\Subscription)

    The automation.

charitable_automation_connect_alert_recipient

Added in version 2.5.0

Who receives the failure alert email.

Return Value

string

Arguments

  • $recipient (string)

    Default the site admin email.

  • $subscription (\Charitable\Pro\AutomationConnect\Subscription)

    The automation.

charitable_automation_connect_alert_subject

Added in version 2.5.0

The failure alert email subject.

Return Value

string

Arguments

  • $subject (string)

    The default subject.

  • $subscription (\Charitable\Pro\AutomationConnect\Subscription)

    The automation.

charitable_automation_connect_alert_message

Added in version 2.5.0

The failure alert email body.

Return Value

string

Arguments

  • $body (string)

    The default message.

  • $subscription (\Charitable\Pro\AutomationConnect\Subscription)

    The automation.

charitable_automation_connect_money_merge_tags

Added in version 2.5.0

Merge tags that are formatted as currency in emails, notes, and Slack messages.

Return Value

string[]

Arguments

  • $keys (string[])

    Default money keys, such as total and fee_amount.

charitable_automation_connect_payload_field_label

Added in version 2.5.0

The key a payload field is sent under.

Return Value

string

Arguments

  • $label (string)

    The key to use.

charitable_automation_connect_payload_donor_stats_fresh

Added in version 2.5.0

Whether donor lifetime total and donation count are recalculated at send time.

Return Value

bool

Arguments

  • $fresh (bool)

    Default true.

charitable_automation_connect_backfill_estimate_cap

Added in version 2.5.0

Maximum donors counted for the Apply to existing donors estimate.

Return Value

int

Arguments

  • $cap (int)

    The cap.

Action

charitable_automation_connect_start

Added in version 1.0.0

Hook fired when the plugin is first loaded.

Return Value

Void

Arguments

  • $plugin (\Charitable\Pro\AutomationConnect\Domain\Bootstrap )

    An instance of the plugin Bootstrap class.

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!

New recurring donations

🔁 Introducing Recurring Amount Changes: Update a Gift Without Starting Over!

A monthly donor who wants to give $40 instead of $25 no longer has to cancel and sign up again. Change the amount or the billing period on an active recurring donation, with Recurring Donations 2.1.0 on Charitable Pro 1.8.16 or later. Why this is important:

  • 🔁 Same subscription, new amount: The gift keeps its history and its original start date instead of splitting into two records.
  • 📈 Say yes the same day: A donor who asks to give more gets the change made for them, with nothing to sign up for again.
  • 💗 Lower it instead of losing it: A donor who cannot afford the current amount can give less rather than cancel.
  • ✅ Push it live or ask first: Send the change to Stripe right away, or wait for the donor to approve it.
  • 📅 Change the schedule too: Switch the billing period, or set a gift to stop after a number of payments or on a date.

Check out our announcement here.

automation New

🤖 Introducing AI-Built Automations: Just Describe What You Want!

Describe the automation you want in one sentence and your AI assistant builds it, with Automation Connect 2.x on Charitable Pro 1.8.19 or later. Why this is important:

  • 🧩 Built in one sentence: Say what you want and it gets built, instead of adding it card by card.
  • 🎯 Changed by asking again: Narrow it to one campaign or reorder its actions without opening the editor.
  • 🔍 Checked before it goes live: See what it would do against a real recent gift, with nothing actually sent.
  • 🛡️ Off until you turn it on: Three separate switches, all off by default, and reading works without any of them.
  • 📜 Nothing happens unseen: Every read and every change is logged, so you always know what the AI did.

Check out our announcement here.

Donations New

👥 Introducing Donor Merging: Two Records, One Supporter!

Somewhere in your donor list is a supporter who appears twice, because they gave from a work address one year and a personal one the next. Every donation is still recorded and every receipt still went out, but a loyal supporter who has given for years can look like two people who gave half as much. From the Charitable Pro plugin 1.8.19.1 you can find those records and merge them from the Donors screen. Why this is important:

  • 🔍 A Find Duplicates link where you already work: Head to Charitable » Donors and it sits next to Filter and Export, then tells you how many groups of possible duplicates it found.
  • 🧩 Grouped by name, not by email: Charitable compares the first and last name together and ignores capital letters, spacing and punctuation, which is what catches the same person under two different addresses.
  • 📊 A preview before anything changes: Each group shows every record with its email address, its donation count and its lifetime total, and the preview shows you the combined totals and the email that will be added.
  • ↩️ Every merge can be undone: Nothing is merged until you choose to merge it, and you can reverse any merge afterwards, so a wrong guess costs you nothing.
  • 📥 Built for the week after an import: Moving donors over from another plugin is where most duplicates come from, and it is also when they are hardest to spot, because every record is new to you.

Check out our announcement here.

ambassadors New

🔑 Introducing Passwordless Fundraisers: Sign Up With Just an Email!

Supporters arrive wanting to help, and then the form asks them to invent a password for a website they may only visit twice. A lot of them stop right there. Passwordless Fundraiser Accounts, new in Charitable Ambassadors 3.5.0, let a supporter start a peer to peer fundraiser with nothing but an email address. Why this is important:

  • 🔑 No password step to lose them at: Switch it on in Charitable » Ambassadors » Templates » Submit Form and the create-fundraiser form asks only for a name, an email address and a page title.
  • 👤 Still a real WordPress account: One click in one email confirms the address, signs them in and creates the account, so they can come back later to edit their story, change their photo and see who has donated.
  • 🎚️ Your call on every campaign: Each peer to peer campaign can follow the site default or override it, which matters when a campaign pays fundraisers through Stripe Connect and those people do need a password.
  • 📋 See who has not clicked yet: The Charitable » Ambassadors » Directory » Awaiting Sign-In tab lists everyone still waiting, with the campaign they joined and a Resend button, so a typo or a spam folder is something you can spot and fix.
  • 🛡️ Links a scanner cannot use up: Opening the link only shows a page, and your fundraiser is signed in when they press the button on it, so corporate email scanners never burn the link. Each one works once, expires on its own and is stored only as a hash.

Check out our announcement here.

ambassadors New

🏃 Introducing Activity: Show Progress on More Than Money!

Most peer-to-peer fundraisers are about more than the money. A read-a-thon is about minutes read, a walkathon is about miles walked, and a food drive is about meals packed. Activity for Charitable Ambassadors lets your fundraisers show that effort right beside the dollars they raise. Why this is important:

  • 🎯 Progress on what you actually count: A progress bar shows each thing you count against its own target, sitting right beside the money raised.
  • 🏅 Milestones for the yes or no things: A milestone badge marks the efforts that are simply done or not done, with no number to chase.
  • ✍️ Fundraisers log their own numbers: Your supporters enter their totals from their own pages, so the effort stops living in a spreadsheet, a comment, or nowhere at all.
  • 🤖 Some numbers count themselves: An AUTOMATIC tag appears wherever the site worked the figure out from completed donations, so you can see at a glance what nobody typed in.
  • 🧩 Set it up once, use it anywhere: You decide what gets counted one time, then choose which campaigns count it. Available now in Charitable Ambassadors 3.4.7, with no new plugin and no developer.

Check out our announcement here.