156 Snippets
40+ Favourites
1.1k Downloads

Redirect To Referer After Login

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

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.

Change Fields On Donation Form

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

Add Dropdown Field To Donation Form

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

Add Dynamic Hidden Field

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

Add Campaign Raised Summary

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

Add Campaign Creator Name Donation Export

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

Make Form Fields Required Not Required

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

Add Field Placeholders

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

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.

1 2 3 4 5 6 13