Generate a virtual coupon when order is completed.
This snippet will generate a new virtual coupon for a coupon that you've enabled virtual coupon…
Disable PayPal for Multi-Item Checkout
Disables the PayPal gateway when the cart contains multiple items. PayPal disabled the ability to purchase…
Remove Product Notes For Specific Downloads
Remove a download's product notes from showing on the purchase confirmation page, the admin email, and…
Shipping label template
/** * The template for displaying the shipping label * * Override this template by copying…
Current Year
function current_year_shortcode() { return date('Y'); } add_shortcode('year', 'current_year_shortcode');
Untitled Snippet
google-site-verification=Z6ci_S0g839p6z-pqU4OUb5KSQpdoJBRrjh791uaErY
AstraFormatFix
add_filter( 'astra_v4_block_editor_compat', "__return_true" );
Allow Eventbrite Styles in Long Description | Display Eventbrite Events
Since version 5.3.4 the Display Eventbrite Plugin has been removing the inline styles Eventbrite add to…
Maintenance Mode
Display a simple maintenance mode message for non-admin users.
Defining Zoho Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…
om-nextjs14.js
'use client'; import { usePathname } from 'next/navigation'; import { useEffect, useState } from 'react'; export…
om-change-view.js
// Show the Yes/No view om{{id}}.changeView('yesno'); // Show the Optin view om{{id}}.changeView('optin'); // Show the Success…