159 Snippets
40+ Favourites
1.2k Downloads

Change Fields On Donation Form

Example on how to change labels for fields on donation form.

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 Dropdown Field To Donation Form

Shows how to add a custom dropdown in a donation form (this example the select field…

Add Field To Set Custom Page As Donation Page

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

Enable Block Editor For Campaigns

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

Redirect To Referer After Login

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

Change Campaign Slug Base

Change the /campaigns/ bit to something else.

Add Field Placeholders

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

Add Creator Name

Display the campaign creator's name on the campaign page and in the campaign grid/list.

Add Dynamic Hidden Field

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

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 14