Add Custom Campaign And Donation Field

In this example, a new email field is added which can be used both in campaign…

Register New Donation Field

Adding a new field (in this example it is a National ID Number). Explains all the…

Add Field To Set Custom Page As Donation Page

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

Use Page Template For Campaigns

Instead of using the Post template for campaigns, use the Page template as a fallback.

Redirect To Referer After Login

After a user logs in, redirect them back to the page they were on right before…

Add Campaign Raised Summary

Add a short summary after the donation details showing the funds raised by each campaign.

Enable Block Editor For Campaigns

Code that will modify the way the Campaign post type is set up to so that…

Change Campaign Slug Base

Change the /campaigns/ bit to something else.

Add Campaign Creator Name Donation Export

In this example, the campaign creator's name is added to the Donations export, so it's easy…

Add Dynamic Hidden Field

Dynamically set as a hidden field in the donation form, based on the ID of the…

Add Field Placeholders

Add placeholder attributes to donation fields, removing the label field.

Make Form Fields Required Not Required

This example shows how to make a form field required or not required.

Change Country Field To Hidden

Change the Country field in the donation form to a hidden field with a hard-coded default…

Change Custom Amount Field Label

Filter the custom amount field description.

Set New User Role

Set the role of users who register through the Charitable registration form shortcode.

1 2 3 4 5 6 29