/
/
RoyalMail Labels
Pro
Utility

RoyalMail Labels

Version 1.10.1 · Updated 26 Nov 2026

Turn any WordPress post into a Royal Mail shipment with one action, and get the tracking number and label straight back.

In every Pro plan. One switch on the Hub’s Add-ons screen.

codicts-royalmail-labels cover image

Overview

What it does

Royal Mail Labels turns a WordPress post (typically an order) into a Royal Mail shipment. Tell it which posts need a label on the Rules tab, or fire one action, do_action( 'codicts_royalmail_generate_label', $post_id ), and the add-on builds the shipment from your settings, calls Royal Mail’s ProShipping CORE API v4, and writes the tracking number and shipment ID back onto the post.

Labels are addressed to a single warehouse destination you set once in the settings, so it’s built for customers sending devices back to you rather than shipping out to a different address per order. Pick your service code, default package weight, and label format (PDF, PNG, ZPL, and the rest), and every shipment goes out the same way.

Under the hood it handles the OAuth token exchange for you (cached until it expires), can pull the Base64 label inline, and can cancel a shipment. Turn on auto-save and the label file lands in /wp-content/uploads/rm-labels/, with its URL stored on the post and mirrored to a public meta key so your front-end can show a download button.

The admin page sits under the Codicts Hub menu with a Test Connection button, an Activity Logs tab so you can see exactly what fired and when, a Labels tab listing every label you’ve generated, and inline docs for the actions and filters other code can hook into.

What you get

  • Generate a label from any post with one action, plus an optional per-call service-code override.
  • Label rules: say which posts need a label (a post type, its statuses and field values) and each gets one the moment it starts matching; Labels, Missing lists those without.
  • Royal Mail ProShipping CORE API v4 client: OAuth handled for you with a transient-cached Bearer token, create shipment, fetch label, cancel shipment, and a connection test.
  • One fixed warehouse destination, with your own service code, content type, description of goods, transaction type, and default package weight sent on every shipment.
  • Label formats for PDF, PNG, PDF/PNG 4×3, ZPL 203/300 DPI, and DATASTREAM, with optional auto-save to /wp-content/uploads/rm-labels/.
  • Labels tab: a records list of every generated label with per-row and bulk actions, status filters (Active / Expired / Failed / Missing), and tracking-number search.
  • Automatic retention with a daily cleanup job, plus per-label expiry for one-off extensions.
  • A label that failed because Royal Mail could not be reached is made again by itself (15 minutes, 1 hour, 4 hours), with tags for a label’s status, why it failed and its next try, and a Make label page for an order that has none.
  • Optional URL masking that serves saved labels from a clean /rm-label/<token> address instead of exposing the uploads path.
  • Result meta on the post (tracking number, shipment ID, status, timestamp, error, label URL), with the tracking number mirrored to a configurable public meta key for the front-end.
  • Extensibility hooks: codicts_royalmail_label_generated, codicts_royalmail_label_failed, and codicts_royalmail_label_pdf_saved actions, plus codicts_royalmail_shipment_data and codicts_royalmail_skip_generation filters.
  • Duplicate-label guard (skips if a tracking number already exists) and an authenticated AJAX handler for manual regeneration.

Changelog

What’s new

Version 1.10.1 · 26 Nov 2026
  • Changed: the Lab always asks before it changes the order of your label rules.
  • New: the Labels list changes in place. Expire and Delete record in bulk ask first, then change just the ticked rows, with no reload: your place, filters and scroll stay put. A bulk run shows its progress, can be stopped, and ends with what changed; a deleted record’s row is blanked to “Label record deleted.” until the page loads again. A label already expired is left as it is and says why. Needs Codicts Hub 2.8.0.
  • Fixed: Screen Options shows “Labels per page” on the Labels list when it is opened without a tab, and no longer on a single label’s page.
  • Fixed: columns hidden in Screen Options stay hidden. They all came back every time the list loaded.
  • Changed: a label’s post title is the link to its page, and Make label, Regenerate, Expire now and Delete label ask in the Hub’s own dialog.
  • Changed: removing a label rule asks in the Hub’s own dialog, not the browser’s.
  • Changed: background work now runs on the Hub’s scheduler: one wake when something is due, retries at the same times as before, shown in Support > Background tasks. Needs Codicts Hub 2.4.0.
  • New: the Lab can set up {C} Royal Mail Labels for you: its settings and label rules, connection tests, making and expiring labels, and the Activity Log, from a chat.
  • A label that failed because Royal Mail could not be reached or was busy is made again by itself: after 15 minutes, 1 hour and 4 hours. Switch it off in Settings.
  • A shipment Royal Mail refused is not tried again; the Labels list says so. New tags give a label’s status, why it failed, its next try and its page, for a retry button.
  • An order with no label yet has a page in the Labels tab too, with a Make label button, so a button on the order can lead there.
  • New Rules tab: say which posts need a label, such as an order in Awaiting Device with Print at Home chosen, and each one gets its label the moment it starts matching.
  • Labels, Missing lists the posts a rule says should have a label and have none, or a failed one. Two new tags say what is wrong and give a fix button its address.
  • The tag picker has every Royal Mail tag in one group, “{C} Royal Mail Labels: Label”, read as @post(c_rm_label.status) and so on. @post(c_rm_label_image) on your pages keeps working.
codicts-royalmail-labels featured image

RoyalMail Labels

Version
1.10.1
Last updated
26 Nov 2026
Works with
Any WordPress site
Needs
Codicts Hub 2.9.1 · PHP 7.4
Category
Utility

Published by

Codicts

Made by Codicts

In every Pro plan. One switch on the Hub’s Add-ons screen.

Reviews

What people say

Reviews are written by customers with an active license. Sign in

Explore

More in Utility

codicts-permalink-router featured image
Pro

By Codicts

WordPress gives a custom post type one URL shape and then stops taking questions. This one builds the URL you actually wanted, taxonomy folders and all.

Customization
Utility
codicts-voxel-post-from-repeaters featured image
Pro

By Codicts

Turn the rows of a Voxel repeater field into real posts, and keep them in sync as those rows change.

Listings
Utility
Requires Voxel
codicts-user-transfer featured image
Pro
v1.3.1

By Codicts

Move members from one WordPress site to another without anyone resetting a password, getting a second account, or losing what they already have.

Admin Tools
Utility
Pro

By Codicts

A table of contents that search engines can read and your readers can use, added to your posts automatically.

Utility

Got a feature in mind? Just ask.

Download the Hub, open the Lab, start typing.