Charitable Documentation

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

Ambassadors Recruit Card Customization

Requires: Charitable Pro 1.8.16+
Charitable Ambassadors 3.0.0+

The Recruit Fundraisers card sits at the top of an eligible ambassador’s My Campaigns page. It shows their personal invite URL, share buttons, a stats line, and a “Your Recruits” toggle – and it’s the most-customized surface in Ambassadors because every program wants to put a slightly different message above the recruit link.

This page is the reference for the filters and actions that let you customize the recruit card without forking the template.

Where it lives

The card renders inside the charitable_ambassadors_my_campaigns_before_grid action – in other words, just before the campaign grid on the [charitable_my_campaigns] page.

Its template path: templates/invite/recruit-card.php. Theme override path: your-theme/charitable-pro/charitable-ambassadors/invite/recruit-card.php.

The most-common customization: Learn more link

Out of the box, the card has no Learn more link – we leave the slot empty so sites that don’t need it stay clean. To turn it on, set both the URL and (optionally) the label:

add_filter( 'charitable_ambassadors_recruit_card_learn_more_url', function () {
    return home_url( '/ambassador-handbook/recruiting/' );
} );
add_filter( 'charitable_ambassadors_recruit_card_learn_more_label', function () {
    return 'Tips for inviting friends';
} );

The link renders inline at the bottom of the card with an external-link target (so it opens in a new tab without losing the user’s place).

If the URL is empty (default), the slot is suppressed entirely – no empty placeholder.

Inject custom content (footer hook)

For more than a single link – a short pitch, a video embed, a “see top recruiters this week” widget – use the footer action:

add_action( 'charitable_ambassadors_recruit_card_footer', function ( $user_id, $token, $invite_url ) {
    echo '<p class="recruit-card-tip">Pro tip: share with two people who would care about this cause.</p>';
    echo '<a class="button" href="https://example.com/recruit-video">Watch the 2-minute guide</a>';
}, 10, 3 );

The action runs just above the Learn more slot. Your callback is responsible for its own escaping.

Eligibility – control who sees the card

The card only renders for users who are eligible to recruit. That’s defined by the charitable_ambassadors_user_can_invite filter:

add_filter( 'charitable_ambassadors_user_can_invite', function ( $can, $user_id, $campaign_id_or_null ) {
    // Only verified ambassadors can recruit.
    if ( '1' !== get_user_meta( $user_id, '_charitable_ambassadors_verified', true ) ) {
        return false;
    }
    return $can;
}, 10, 3 );

The filter is global – it controls both the My Campaigns card AND the per-campaign Recruit popovers AND the admin “view as recruiter” preview.

To override the card’s visibility specifically (without affecting other surfaces), filter charitable_ambassadors_show_recruit_card:

add_filter( 'charitable_ambassadors_show_recruit_card', function ( $show, $user_id ) {
    // Hide the card on Mondays. Don't ask.
    return $show && 'Mon' !== gmdate( 'D' );
}, 10, 2 );

Customize the empty-state copy

When an inviter has zero recruits yet, the card’s stats line shows a soft “no recruits yet” prompt. Customize that:

add_filter( 'charitable_ambassadors_recruit_card_empty_text', function () {
    return 'No recruits yet - your link is ready when you are.';
} );

Mirror filter for the Your Recruits view’s empty state:

add_filter( 'charitable_ambassadors_recruits_view_empty_text', function ( $message, $status, $user_id ) {
    if ( 'rejected' === $status ) {
        return 'No rejected recruits - your standards are solid!';
    }
    return $message;
}, 10, 3 );

Body class

The card has its own scoped class for CSS:

.charitable-ambassadors-recruit-card

Drop your overrides under that selector. The card respects the Primary Accent Color via --cap-accent.

Tips

  • Add a Learn more link. It’s a low-effort win – even a one-page internal handbook beats no link at all.
  • Keep the footer concise. The card is meant to be a tactile CTA, not a lecture. One short line, one button.
  • Test on mobile. Long URLs or wide buttons can overflow the card on narrow viewports.
  • Filter eligibility for special programs. “Only verified ambassadors can recruit” is a high-leverage policy.

Developer reference

Filters

FilterDefaultPurpose
charitable_ambassadors_recruit_card_learn_more_url''URL for the Learn more link. Empty suppresses the link.
charitable_ambassadors_recruit_card_learn_more_label“Learn more”Label text.
charitable_ambassadors_recruit_card_empty_textcomputedEmpty-state copy when zero recruits.
charitable_ambassadors_recruits_view_empty_textcomputedEmpty-state copy on the Your Recruits tab. Receives ($message, $status, $user_id).
charitable_ambassadors_show_recruit_cardcomputedCard-specific visibility override. Receives ($show, $user_id).
charitable_ambassadors_user_can_invitecomputedUnderlying eligibility check. Receives ($can, $user_id, $campaign_id).
charitable_ambassadors_recruit_card_share_networkssite settingOverride which share networks appear on the card.

Actions

ActionArgsFires when
charitable_ambassadors_recruit_card_footer$user_id, $token, $invite_urlInside the card, just above the Learn more link.
charitable_ambassadors_recruit_card_before$user_idJust before the card markup begins.
charitable_ambassadors_recruit_card_after$user_idJust after the card markup ends.

Per-campaign Recruit popover

Parent-campaign owners also get a per-campaign Recruit button in each campaign’s action row. The popover that opens has its own action:

add_action( 'charitable_ambassadors_recruit_popover_footer', function ( $campaign_id, $user_id, $token, $invite_url ) {
    echo '<p>Sharing this link recruits for "' . esc_html( get_the_title( $campaign_id ) ) . '" specifically.</p>';
}, 10, 4 );

Template path

templates/invite/recruit-card.php          # the My Campaigns recruit card
templates/invite/recruit-card-popover.php  # the per-campaign recruit popover

Theme override path: your-theme/charitable-pro/charitable-ambassadors/invite/recruit-card.php.

Capabilities

Public render – the card decides per-user whether to show via the eligibility filter. No capability gate.

Customization examples

Hide the card from administrators (only ambassadors should see it):

add_filter( 'charitable_ambassadors_show_recruit_card', function ( $show, $user_id ) {
    $user = get_user_by( 'id', $user_id );
    if ( $user && user_can( $user, 'administrator' ) ) {
        return false;
    }
    return $show;
}, 10, 2 );

Add a “Copy short message” button to the card:

add_action( 'charitable_ambassadors_recruit_card_footer', function ( $user_id, $token, $invite_url ) {
    $msg = 'Help me fundraise for this cause! ' . $invite_url;
    echo '<button class="button" type="button" data-clipboard-text="' . esc_attr( $msg ) . '">Copy short message</button>';
}, 10, 3 );

Render a different card variant for a specific user role:

add_filter( 'charitable_ambassadors_recruit_card_template', function ( $template, $user_id ) {
    if ( user_can( $user_id, 'verified_ambassador' ) ) {
        return 'recruit-card-verified.php';  // your custom partial
    }
    return $template;
}, 10, 2 );

Restrict share networks shown on the card to just Copy Link + Email:

add_filter( 'charitable_ambassadors_recruit_card_share_networks', function () {
    return [ 'email', 'copy' ];
} );

Related


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!

automation update

⚡ Visual Automation Builder: Drag and Drop With No Code!

Charitable Automation Connect 2.3.0 introduces the Visual Automation Builder, a full-screen canvas that lays each automation out as a flow of connected cards: a trigger, optional conditions, and a list of actions that run in order.

🧩 Many actions, one trigger: Tag a donor, send an email, add a note, and fire a webhook from a single event, dragged into any order.

✉️ Act inside Charitable: New Send Email, Tag Donor, and Add Donor Note actions run with no external service required.

🔤 Merge tags: Personalize emails and notes with live fields like {first_name}, {total}, and {campaign_name}.

🔁 Apply to existing donors: Run Tag Donor and Add Donor Note against the donors you already have.

🖥️ Canvas or Simple: Switch views anytime, and automations built before 2.3.0 keep working unchanged.

Read more here.

Integration updated

📬 Introducing Brevo for Charitable: Turn Donors into Subscribers Automatically

The moment a supporter makes a gift is when they are most engaged. With the new Brevo integration for Charitable, you can automatically turn those one-time donors into long-term subscribers without touching a single spreadsheet.

Simply collect donor consent right on your donation form and start your welcome series immediately.

What’s New:

🔄 Automated Subscriber Sync: New donors who opt in are added straight to your Brevo contact list as soon as their payment clears—no manual exports or CSV imports required.

🎯 Granular Consent & Opt-In Control: Customize your checkbox label, choose whether it defaults to checked or unchecked, or turn on Brevo double opt-in to keep your list clean and compliant.

📋 Per-Campaign List Mapping: Route supporters to your global email list or map specific campaigns to targeted Brevo lists to tailor your follow-up messaging.

⚡ 5-Minute Setup: Connect instantly by pasting your Brevo API key into the Newsletter settings, map your contact fields, and start building your email list on autopilot.

Ready to grow your mailing list? Brevo is available now starting on the Charitable Plus plan—connect your account today!

recurring donations updated

💳 Introducing Card Updates: Fix Expired Cards Without Losing Subscriptions!

newExpired or updated credit cards are one of the biggest silent leaks in recurring fundraising. With Card Updates in the Recurring Donations extension, donors can now refresh their payment details directly—keeping their subscription, schedule, and giving history completely intact.

No canceled plans, no lost history, and zero administrative headache for your team.

What’s New:

⚡ 30-Second Self-Service: Donors get a dedicated “Update Card” button in their dashboard that opens Stripe’s secure, PCI-compliant Customer Portal to update card details instantly.

🔒 Scoped & Safe Access: Scoped exclusively to card updates by default, donors can’t accidentally cancel or alter their plans from inside the portal, keeping your webhooks and data in sync.

🤝 Admin-Assisted Support: Helping a donor on the phone? Open their secure Stripe portal in one click from your admin screen or generate a single-use update link to email them.

📋 Automatic Audit Trail: Every payment method update is recorded automatically with a timestamp in both system-wide logs and the individual donor’s profile.

Ready to protect your recurring revenue? Get the Plus or Pro plan and update Recurring Donations to 2.3.0+ and enable “Update Payment Method” under your Settings today!

Integration page builder

Divi Fans Rejoice! Native Divi 5 Campaign Progress Bar Module!

With our new native Divi 5 module, you can anchor your microsites with real-time fundraising stats directly on the visual canvas. Here’s how it works, and why it’s worth turning on today.

Create campaign updates that are VISUAL AND LIVE. You can also:

📊 Campaign Progress Bar: Drop a live progress bar into any Divi 5 layout and show goal progress in real time.

🎨 Deep styling controls: Easily customize the bar and track color, height, and radius to match your brand perfectly.

👁️ Visual Builder ready: Configure and preview everything directly on the Divi canvas as a first-class module.

🔁 Identical rendering: The same exact engine powers this module, meaning consistent design without legacy shims.

✅ Faster launches: Never leave the Divi 5 interface to configure shortcodes or guess how your goal labels will look.

Learn more here.

Integration page builder

👉🏻 New in Charitable: Native Elementor Widgets for Seamless Campaign Building

With native Elementor widgets, you design donation campaigns right alongside the rest of your page without touching code. Here’s how it works, and why it’s worth turning on today.

Create fundraising pages that are VISUAL, NATIVE, AND SHORTCODE-FREE. You can also:

⚡ Mini Donation: Add a compact, high-converting donation widget with preset amounts and full color control.

⏳ Campaign Countdown: Build urgency for a deadline-driven appeal, complete with optional confetti when the goal is hit.

📣 Donation Feed: Prove momentum by showing visitors the social proof of real people giving right now.

🏆 Donor Leaderboard: Celebrate top supporters with gold, silver, and bronze styling to spark friendly giving.

🖼️ Campaign Showcase: Feature multiple campaigns in a landing page grid or carousel, with search, filters, and badges.

Learn more here.