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.
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.
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.





