Change Campaign Finished Notice

/** * Change the notice shown for campaigns when they are finished. * * This notice…

MemberPress: Only Allow Coupon Once Per User

Restrict coupon codes so a user can only use the coupon code once.

Send Donation Notification For Pending Offline Donations

/** * Right after a donation is made, this sends a notification to admin if *…

Add Tag And End Date To Funded Campaign

/** * Sometimes, it can be useful to do something special for campaigns that * have…

Add Currency

/** * Add a new currency. * * @param string[] $currencies The list of registered currencies.…

MemberPress: Require Specific Coupon to Register

The code will make a specific coupon mandatory for purchasing a specific membership. More than one…

Auto Complete Offline Donations

/** * Automatically mark all offline donations as Paid. * * @param boolean $return * @param…

Add Dynamic Hidden Field

/** * In this example, a new donation field is created but left out of the…

Add Empty Option To Countries List

/** * In this example we add an empty "Select your country" * option at the…

Add Field To Set Custom Page As Donation Page

/** * Create a new campaign field allowing to select the page where donations are made.…

WPForms: new smart tag - Current Unix Time

Using wp_date() function to output a Unix time where the smart tag is used.

Remove Form Fields

This snippet has moved to https://github.com/Charitable/library/tree/master/forms/general/remove-form-fields.php

Change Accepted Countries Per Campaign

/** * This example shows how to change the accepted countries list on a per-campaign basis.…

Set Campaign Thumbnail Size

/** * If you want all campaign thumbnails to have the same size, you can use…

1 7 8 9 10 11 15