Untitled Snippet
increase upload memory
WP Simple Pay: Disable Webhook Failed Notification
Disable alert bubbles when webhook events are not received.
WP Simple Pay: Allow Customers to Exempt from Tax
Add a "Checkbox" field with the "Stripe Metadata Label" set to "Tax Exempt"
WP Simple Pay: Stripe Checkout - Subscription Confirmation
Ensure Customer Subscriptions are available in the payment confirmation data.
MemberPress: Modify "Back to Home" Text And Link on Thank You Page
This snippet changes the text and link of the "Back to Home" button or link (inside…
Send Donation Notification For Pending Offline Donations
Sends a notification to admin if the donation is pending AND it was made in offline…
WP Mail SMTP: when using SMTP mailer - disable SSL verification
This is an insecure approach and you most probably should fix your servers' SSL certificates (they…
Prevent Discounts on Renewals
Does not allow a discount code to be applied when an EDD SL is present in…
Keep Emoticons
WordPress converts all emoticons to emoji. This small snippet prevents that, without removing emojis from your…
Set Minimum total purchase amount
add_action( 'woocommerce_check_cart_items', 'required_min_cart_subtotal_amount' ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount =…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
Change TikTok purchase Event
When using the WPCode Conversion Pixels addon the event name used when a purchase is completed…
MemberPress: Disable Emails for Specific Memberships
The code snippet will disable emails from being sent based on the text matching a membership…
MemberPress: Delete Transaction and User Account When Sub-Account is Removed
Adding this code snippet will automatically delete user account and related transaction when a sub-account is…