Allow SVG/JPEG/WEBP/ICO/AVIF Files Upload
Allows these filetypes to be uploaded to the media library
Google Tag Manager
Google Tag Manager is a tag management system created by Google to manage JavaScript and HTML…
Change user role for buyers
This is useful if, for example, you want buyers to be able to access dedicated content…
Disabling MemberPress Signup Reminder Emails for Specific Users
The code snippet disables MemberPress signup reminder emails for users with specified email addresses.
Make Single Field Required
Make a single field on the donation form required.
MemberPress: Add the Invoice Number to the Transactions Screen
If the MemberPress PDF Invoice add-on is activated on the website, MemberPress will start generating invoices…
Add Picture Field To Donation Form
A picture field is added to the donation form, allowing donors to upload an image as…
Disable Wordpress image compression
// Disable image compression add_filter( 'jpeg_quality', 'smashing_jpeg_quality' ); function smashing_jpeg_quality() { return 100; } // Disable…
Unhook Default Charitable Template Functions
In this example, we're going to remove the donor count from the campaign page, but you…
On Add to Cart Event in WooCommerce
Adds the cancellation event to stop the Browse Abandonment campaign for your push subscribers in the…
Defining Google Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…
WP Simple Pay: Custom Webhook Handling Example
An example of handling the `coupon.updated` webhook event. For a full list of available events see:…
Load Template Files In Admin
Load Charitable template files in the admin area.
Remove Campaign Description
Remove the campaign descriptions from the campaign loop (campaign shortcodes).
MemberPress: Add Shortcode To Output the User’s Subscription Expiration Date
Adds the following shortcode: [mepr-sub-expiration membership=' ']. The shortcode will output the expiration date of the…