tr Skip to content
Black Friday FlowMattic for life, 12 payments of $33.25 Or $399 once. Nothing added for splitting Ends in --Days --Hrs --Min --Sec See the deal

WordPress QR Code Generator and Barcodes Inside Your Workflows

FlowMattic Barcode and QR Generator modules: a new booking creates a QR code that is saved to the Media Library and sent in the ticket email.

If you need a WordPress QR code generator that fills itself in from your orders, bookings and forms, FlowMattic has two modules for it. QR Generator turns links, contacts, Wi-Fi details and messages into styled QR codes, and Barcode Generator renders classic 1D barcodes such as Code 128, EAN-13 and UPC-A. Both run as steps in a workflow and save the image to your Media Library.

That means a ticket, a packing slip or a membership card can carry its own code the moment the record exists, without anyone opening a generator website and downloading files by hand.

What are the Barcode Generator and QR Generator?

They are two built-in action apps in the FlowMattic workflow builder, listed with the other data tools:

  • QR Generator, action Generate QR Code: “Generate a QR code with customizable options and save to media library.”
  • Barcode Generator, action Generate Barcode: renders a 1D barcode as a PNG and saves it to the Media Library or returns it as a base64 data URI.

They are built differently. Barcodes are drawn entirely on your own server with PHP’s GD extension and the barcode library inside mPDF. QR codes are generated by FlowMattic’s QR service and saved to your site as SVG files.

How the WordPress QR code generator works

  1. Add a step and choose QR Generator, action Generate QR Code.
  2. Pick a QR Code Type. The fields below change to match.
  3. Map the content from your trigger, for example a booking ID or a page URL.
  4. Adjust size, colours and styling if you like, then test the step.
  5. Use media_url in a PDF, an email or a page.
FlowMattic workflow builder showing the QR Generator step with the Generate QR Code action, QR Code Type set to URL / Link and the URL field.
The QR Generator step set to the URL / Link type, with size, colour and error correction options below.

QR code types

QR Code TypeFields
Plain TextText Content
URL / LinkURL
Contact (vCard)First Name, Last Name, Phone Number, Email Address, Organization
EmailEmail Address, Subject, Body
Phone NumberPhone Number with country code
SMSPhone Number, Message Text
WhatsAppPhone Number (optional), Message
Wi-Fi NetworkNetwork SSID, Password, Security Type (WPA/WPA2, WEP, None), Hidden Network

QR options

  • Size (pixels): 50 to 2000, default 300.
  • QR Code Color and Background Color: hex codes or simple colour names. If both are the same, the step falls back to black on white so the code stays readable.
  • Error Correction Level: Low (~7%), Medium (~15%, the default), Quartile (~25%) or High (~30%).
  • Margin: the quiet zone, 0 to 50, default 4.
  • Filename: optional; a unique name is generated if you leave it empty.

Under Advanced Styling Options you can add a Logo/Image URL in the centre with Logo Size (%) from 10 to 30, a Logo Background Color and Logo Border Radius, round the whole image with Border Radius, and style the three large corner squares with Corner Block Border Radius, Corner Block Color and Corner Pattern Style. Dot Style offers Square, Rounded, Dots/Circles and Extra Rounded.

The step returns media_id, media_url, filename, qr_type and the encoded input_data.

How the Barcode Generator works

Choose Barcode Generator, action Generate Barcode, and fill in:

FieldWhat it does
Barcode ContentThe value to encode, such as an order number or SKU. Required.
Barcode TypeOne of 29 symbologies; Code 128 B is the default and suits most internal uses.
Bar WidthWidth of the narrowest bar in pixels, 1 to 10, default 2.
Bar Height20 to 600 pixels, default 70.
Show Value Below BarcodeYes by default; prints the encoded value, including any check digit.
Bar Colour / Background ColourHex colours, default #000000 on #FFFFFF.
OutputSave to Media Library, or Return as base64 data URI.
File NameOptional; defaults to the barcode value, and .png is added for you.
FlowMattic workflow builder showing the Barcode Generator step with Barcode Content, Barcode Type, Bar Width, Bar Height and Output fields.
The Barcode Generator step encoding an order number as Code 128 B and saving the PNG to the Media Library.

The 29 types cover Code 128 (A, B and C), Code 39 with its check-digit and extended variants, Code 93, Code 11, Codabar, EAN-13, EAN-8, UPC-A, UPC-E, the EAN-2 and EAN-5 supplements, ISBN, ISSN, Interleaved and Standard 2 of 5, MSI, and the postal codes POSTNET, PLANET, Intelligent Mail Barcode, RM4SCC and KIX.

The output includes barcode_type, width, height and size, then either attachment_id, url and filename, or base64 and data_uri. When the printed value differs from what you sent, for example because a check digit was added, it is returned as encoded_value.

Use cases

Check-in QR codes on booking confirmations

Encode the booking reference or a check-in URL and place the image in the confirmation email, so staff can scan guests in at the door.

Bookings: new booking → QR Generator (URL / Link) → Send email

Barcoded packing slips

Render the order number as Code 128 and drop it into a packing slip, so the warehouse scans instead of typing.

WooCommerce: order paid → Barcode Generator → PDF Template → Email to warehouse

Retail labels from product data

When a product with a 13-digit EAN is created, generate the EAN-13 barcode and store the image URL with the product for label printing.

WooCommerce: new product → Barcode Generator (EAN-13) → WP Tables: new record

Digital business cards for new staff

An HR form for a new hire such as Amelia Okafor produces a vCard QR code with her name, phone, email and organisation, ready for her business card.

Form submission → QR Generator (Contact vCard) → Email to design team

Membership cards with a scannable ID

Give each new member a Code 128 card number and embed the barcode straight into an email as a data URI, without keeping a file on disk.

WordPress: new user → Barcode Generator (data URI) → Send email

Campaign posters that track

Add UTM parameters to a landing page URL, shorten it with the Link Shortener, and turn the short link into a branded QR code with your logo in the centre.

Webhook → Link Shortener → QR Generator (with logo) → Slack: send to design

Tips and gotchas

  • Exact lengths are enforced. EAN-13, ISBN and ISSN need 12 or 13 digits, EAN-8 needs 7 or 8, UPC-A 11 or 12, UPC-E 11, EAN-2 two and EAN-5 five. A wrong length is rejected rather than padded, because a padded value would scan as a different product. For these types, spaces and hyphens are removed first.
  • Contrast matters. Keep dark bars on a light background; light-on-dark barcodes usually won’t scan. Raise Bar Width when labels will be printed small.
  • The barcode library installs on first use. If it isn’t present yet, FlowMattic downloads it from the FlowMattic CDN. The step needs a writable uploads folder, and PHP GD must be enabled.
  • QR content leaves your server. QR codes are generated by FlowMattic’s QR service, so the encoded text, including a Wi-Fi password, is sent there. Barcodes are rendered locally.
  • Use unique QR file names. A fixed Filename writes over the earlier file of that name in the current uploads folder. Include an order or booking ID, or leave it empty for an auto-generated name.
  • Logos need error correction. The help text recommends High (H) when you add a centre logo.

Related features

FAQ

How do I generate a QR code automatically in WordPress?

Create a FlowMattic workflow with the trigger you want, such as a new order or booking, then add the QR Generator step and map the content into it. Every run saves a new QR code to the Media Library and returns its URL, so the WordPress QR code generator works without anyone touching it.

Can I make a Wi-Fi QR code?

Yes. Choose Wi-Fi Network as the QR Code Type and enter the SSID, password, security type and whether the network is hidden. The step builds the standard Wi-Fi QR format for you, so guests scan instead of typing the password.

What file formats do the codes use?

QR codes are saved as SVG files. Barcodes are PNG images, either saved to the Media Library or returned as a base64 data URI.

Which barcode type should I choose?

Code 128 B handles letters and digits and stays compact, so it suits order numbers, SKUs and member IDs. Use EAN-13 or UPC-A only for real retail product codes.

Barcodes and QR codes are two of the many built-in modules that work alongside nearly 900 integrations. Choose a plan and put a scannable code on every order, ticket and card.

More from the blog