Archives: Snippets
WWPP – Add custom text to the Completed Order email for non-wholesale customers only
/** * Add custom text to the Completed Order email for non-wholesale customers only. */ add_action( ‘woocommerce_email_before_order_table’, function( $order, $sent_to_admin, $plain_text, $email ) { // Only target the Completed Order email if ( ‘customer_completed_order’ !== $email->id ) { return; }…Continue reading
Customize the WooCommerce Email Template Subject for Wholesale Customers
/** * Customize the Subject for wholesalers */ add_filter( ‘woocommerce_email_subject_customer_completed_order’, function( $subject, $order ) { if ( ! $order ) return $subject; $customer_id = $order->get_customer_id(); if ( ! $customer_id ) return $subject; $wholesale_roles = [ ‘wholesale_customer’, ‘wholesale_vip’ ]; $user =…Continue reading
Add custom text to WooCommerce Email Templates for Wholesale Customers
/** * Add custom text to the Completed Order email for wholesale customers only. */ add_action( ‘woocommerce_email_before_order_table’, function( $order, $sent_to_admin, $plain_text, $email ) { // Only target the Completed Order email if ( ‘customer_completed_order’ !== $email->id ) { return; }…Continue reading
Exclude Wholesale Customers from receiving the PDF Invoice
/** * Exclude wholesale roles from receiving the PDF Invoice attachment in emails. * * Wholesale Suite roles on this site: * – wholesale_customer (Wholesale Customer) * – wholesale_vip (Wholesale VIP) * * Plugin: WooCommerce PDF Invoices & Packing Slips…Continue reading
Topup Form
Top Up Now Player ID Buy NowContinue reading
Beautiful tag
Payment Calculator
Untitled Snippet
AffiliateWP Network Stats Shortcode
/** * Shortcode: [affwp_network_stats] * * Returns a single network stat for the logged-in affiliate. * Use multiple instances in JetEngine with your own labels. * * Attributes: * type = total_earnings (default) | own_earnings | downline_earnings * | network_count…Continue reading