WC Vendors – Automate PDF Invoice for vendor orders
add_action( ‘woocommerce_order_status_processing’, function( $order_id ) { if ( ‘yes’ !== get_option( ‘wcvendors_vendor_invoice_enabled’, ‘no’ ) ) { return; } $order = wc_get_order( $order_id ); if ( ! $order ) { return; } // Skip per-vendor child orders — only process the…Continue reading