Register New Users as Customers

Register New Users as Customers

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 (…

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',…

work in progress

3d cartoon style racing game that I can import to scratch, other racers and a start…

Change label of CSV header, and removing others(Export Totals to CSV)

This snippet will change the label of CSV header, and remove the others(Export Totals to CSV)

Add Custom Taxonomy - Single Vendor Taxonomy

It'll only allow the vendor to select one custom taxonomy term at a time

How to change the store address country for all vendors

/** * Set the vendor's store country to us. */ function wcv_set_vendor_country() { if ( function_exists(…

Allow "Mark received" for Digital Product

add_filter( 'wcvendors_pro_mark_order_received_status', '__return_false' );

MemberPress: Dynamic Trail Periods

Sets up a dynamic trial period so that all users renew on the same date. In…

Untitled Snippet

google-site-verification=6Ml542WH4lYeFrqKo9pBa6NBaAyONR9l0k5Sgrk27xk

Remove Gutenberg CSS

//Remove Gutenberg Block Library CSS from loading on the frontend function smartwp_remove_wp_block_library_css(){ wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style(…

<10

Set the ranges for Calendar List View | Display Eventbrite Events

The following code snippet filters the valid ranges for the next/prev keys of the calendar list…

Cusdtom WP escape

One major difficulty with passing WordPress org security reviews is escaping late. This function may help.

1 126 127 128 129 130 215