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 (…
Download Archive Menu Item
Displays the download archive link in the "View All" tab of the "Pages" menu items meta…
Untitled Snippet
PIPAS — Biennale de Photographie Genève PIPAS À propos Pratique 24 22 PIPAS Biennale de Photographie…
Retroactive License Emails
Send an email with the license key to customers when retroactively generating licenses with Easy Digital…
Disallow Store Credit When There Is an Active Coupon in the Cart
- When you apply coupon first, once the cart refreshes, the Store Credit field will be…
Download Archive Purchase Buttons
Output purchase button below the full content on download archive pages.
WWPAY - Add Purchase Order Number field to Wholesale Payments at classic checkout
One caveat: this only support WooCommerce Classic Checkout.
Auto Generate Virtual Coupon After a Customer Completed an Order
/** * Generate a virtual coupon when order is completed. * * @param int $order_id Order…
Detect Orphaned Content in WordPress Admin
Identify published posts and pages that are not linked internally from other published content on your…
Untitled Snippet
<meta name="google-adsense-account" content="ca-pub-9481928342352849">
Custom Field to Vendor Settings Page
/* WC Vendors Pro - My Custom Field */ function store_bank_details( ){ if ( class_exists( 'WCVendors_Pro'…
Remove table from dashboard
if ( ! function_exists( 'wcv_remove_recent_order_table_columns' ) ) { /** * Remove columns from Recent Orders table…
wpadmin add phone number with address in orders page
add_action( 'manage_shop_order_posts_custom_column' , 'custom_orders_list_column_content', 50, 2 ); function custom_orders_list_column_content( $column, $post_id ) { global $the_order, $post;…
After Checkout Event in EDD
This snippet would stop sending cart abandonment campaigns to your push subscribers as the purchase goal…