Remove the coupon section for orders that did not use any coupon.

add_action( 'woocommerce_email_before_order_table', 'conditionally_remove_coupon_section_from_email', 5, 4 ); function conditionally_remove_coupon_section_from_email( $order, $sent_to_admin, $plain_text, $email ) { if (…

Force account creation by cart total

Force account creation at checkout if the cart total is a certain amount and the quantity…

Disable WordPress auto-update emails (plugins/themes/core)

// Disable auto-update emails. add_filter( 'auto_core_update_send_email', '__return_false' ); // Disable auto-update emails for plugins. add_filter( 'auto_plugin_update_send_email',…

Prevent Discounts on Upgrades

Does not allow a discount code to be applied when an license upgrade is present in…

Use Full Store Address in Ships From

By default the Ships From metadata displayed under the add to cart button only shows the…

Add Custom Taxonomy to Woocommerce Single Product Page

add_action( 'woocommerce_product_meta_end', 'wcv_add_brands_single_product' ); function wcv_add_brands_single_product() { global $product; $taxonomy = 'wcv_brands'; // The custom taxonomy…

Stop Lazy Load

add_filter( 'wp_lazy_loading_enabled', '__return_false' );

<10

Add Subscriber to Segment with Duration

Adds the subscriber to the segment for a specific duration, after the defined number of days…

Action Scheduler Cleardown | Display Eventbrite Events

Eventbrite uses Action Scheduler to handle background tasks when background processing is enabled. By default, Action…

Post-States

add_filter( 'display_post_states', 'bu_style_post_state_bricks', 15, 2 ); function bu_style_post_state_bricks ($post_states, $post) { if( isset( $post_states['bricks'] ) )…

Change TikTok purchase Event

When using the WPCode Conversion Pixels addon the event name used when a purchase is completed…

<10

See the Scheduled Actions option in the WordPress admin sidebar

This snippet gives you the ability to add the Scheduled Actions menu item to the WordPress…

Enable WP Mail SMTP Constants

This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…

1 142 143 144 145 146 213