Change Currency Format By Locale

This snippet below shows how to change the currency format for each language.

Display Vendor-Submitted data as Restricted Content.

Automatically output content submitted by FES Vendors wrapped in the [edd_restrict] shortcode.

Untitled Snippet

increase upload memory

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…

<10

Number slider validation for multi page forms

This snippet outputs a small script that listens for the wpformsBeforePageChange event and stops the page…

<10

Instagram Shop

Instagram and Facebook

jeannie weingarten
<10

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…

Remove hyperlink from name field

add_filter('preprocess_comment', 'remove_links_from_comment_author'); function remove_links_from_comment_author($commentdata) { // Regular expression to detect hyperlinks $pattern = '/

Pete Tran
<10

Add user registration date

/* * Creating a column (it is also possible to remove some default ones) */ add_filter(…

MemebrPress: Send Membership-Specific Welcome Email Only When Transaction Is Completed

The code snippet will allow the membership-specific welcome email to be triggered only following the successful…

1 … 83 84 85 86 87 … 243