This is a library of code snippets designed to help end users and theme or plugin developers.
If you are new to PHP or WordPress development, we recommend adding these code snippets using the Code Snippets plugin. This allows you to add the code directly within your WordPress dashboard.
For those a little more familiar with WordPress development, you can use the snippets to create simple standalone plugins. Read the WordPress documentation about creating a plugin.
Alternatively, you could add the snippets directly to your theme or child theme's functions.php
file.
We welcome and encourage everyone to submit their code snippets. If you would like to submit your snippet, please fork the repository and then create a pull request.
- Add an opt-out for receiving the donation receipt
- Change State field to Province
- Collect National ID number
- Make the donor address fields required
- Copy the donation receipt to the website admin
- [Send donation notifications to admin for Offline donations that are Pending](https://github.com/Charitable/ library/blob/master/emails/send-donation-notification-for-pending-offline-donations.php)
- Send donation receipt to customer for Offline donations that are Pending
- Add featured image to the top of the campaign
- Remove campaign summary block
- Add a progress bar before the campaign summary block
- Move the campaign summary block below the Extended Description
Campaign Form
- Remove all user fields except for the name & email fields
- Automatically approve campaigns
- Allow ambassadors to edit the goal of an active campaign
- Remove the categories field
- Remove the organisation field
- Remove the tags field
- Change the Campaign Details header
- Change the Campaign Name field label
- Remove the campaign length field and replace with an end date field