Download Archive Purchase Buttons
Output purchase button below the full content on download archive pages.
WWPP - Customize the admin "New Order" email subject for wholesalers
/** * Customize the Admin "New Order" email subject for wholesale customers only */ add_filter( 'woocommerce_email_subject_new_order',…
WWLC - Sync the Wholesale Lead Data to Klaviyo
Here's how to integrate your WooCommerce Wholesale Lead Capture registration form with Klaviyo so that new…
Auto Generate Virtual Coupon After a Customer Completed an Order
/** * Generate a virtual coupon when order is completed. * * @param int $order_id Order…
ACFW – Invalidate coupons based on a product's custom meta field using Custom Cart Item Meta
If you want to manage the restriction visually inside the Advanced Coupons Cart Conditions panel, you…
Custom Field to Vendor Settings Page
/* WC Vendors Pro - My Custom Field */ function store_bank_details( ){ if ( class_exists( 'WCVendors_Pro'…
Days of the Week Filter Fix (Events List Block)
Fixes the Events List block's "Days of the Week" filter so it re-queries the server instead…
Remove table from dashboard
if ( ! function_exists( 'wcv_remove_recent_order_table_columns' ) ) { /** * Remove columns from Recent Orders table…
Reorder Post Column
Rearrange the post column inside admin area. This snippet moves the default author name before title.
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;…
Set Default Tax Class to 'Zero rate' on WC Vendors Pro Add Product Form
/** * Set Default Tax Class to 'Zero rate' on WC Vendors Pro Add Product Form…
Jostar Kitchen Reno Budget Calculator
(function(){ /* ===== Gravity Forms settings: replace the numbers with your form and field IDs =====…
Contributor Default Role
Change default role to contributor during user registration.