Convert Units fills in the US/Metric conversions for all your existing recipes in one go, so you don’t have to open each recipe and click Convert All Ingredients. It finds every recipe card on your site, shows you which unit system each one is written in, lets you check every converted amount before anything changes, and can undo the whole run.
Use it when you turn on Unit Conversion on a site that already has many recipes, for example a blog with hundreds of recipes in cups and tablespoons.
Convert Units is a premium feature, available with the Professional or Business license, for Editors and Administrators.
Table of Contents


Ingredients need the amount and unit in their own fields. An amount typed into the ingredient name (“2 cups flour”) can’t be converted; the scan points these out.
Click Scan recipes. Convert Units checks every recipe card on your site — in recipes, posts and pages, including drafts and scheduled posts — and lists them.

For each recipe you see:

Recipes that are ready or partly converted are selected automatically. Recipes marked Needs review are not: read the note under the status, and select the recipe yourself once you’ve checked it. See What the warnings mean.

Use the Show filter to list only the recipes that need review, the ones you’ve previewed, or the ones already converted.
The preview runs one recipe at a time, with a progress bar and a Pause button. It doesn’t change your recipes: the converted amounts are saved for you to review, and they’re still there if you leave the page and scan again later.
Each previewed recipe shows how many amounts it will convert and how many need a check.

Click Review next to a previewed recipe to see each ingredient with its original amount and the converted amount and unit.


Ingredients without an amount or a unit, such as 3 eggs, aren’t listed: they read the same in both systems.
When the recipe looks right, click Apply to recipe. Changed your mind about Written in? Pick the other system and click Preview again.
You can apply recipes one at a time with Apply to recipe, or all at once:

Applying a recipe:
A recipe that someone has open in the editor, or that was edited after you previewed it, is skipped with a message: preview it again and apply.
On your site, readers can now switch the recipe between the two systems:

If you use a page cache plugin, clear its cache after applying so visitors see the switcher.
The top of the Convert Units page shows your last run, with an Undo last run button. It restores every recipe changed in that run — everything you applied since you opened the page.

Recipes edited after the conversion are left as they are, so undo never throws away changes you made later.
| Warning | What to do |
|---|---|
| The ingredients look metric, but the recipe is set to US (or the other way round) | Written in follows the ingredients. Check it’s right; applying updates the recipe’s setting to match. |
| Mixes US and metric units | Units already in the other system are kept as they are. Check Written in. |
| An ingredient already has a conversion in its text, like “(120 g)” | Converting would show the amount twice. Remove the note from the ingredient name first, or skip the recipe. |
| Converted amounts are in the same system as the originals | The recipe’s unit system is probably wrong. Check Written in. |
| An amount is a range | Ranges like 1-2 cups are left for you to fill in during the review. |
| An amount is typed in the ingredient name | It can’t be converted. Move the amount to the Amount field in the editor first. |
| Damaged block markup | The tool won’t change this post. Open it in the editor and check the recipe card. |
On large sites you can run the same scan, preview, apply and undo from the command line with WP-CLI. The commands work exactly like the Convert Units page: previews are stored, only empty amounts are filled in, and undo restores the last run. Run them as an administrator with --user.
# List every recipe card with its unit system and status
wp rcb unit-conversion scan --user=admin
# Preview the recipes that need no review (nothing in the recipes changes)
wp rcb unit-conversion preview --user=admin
# See what would be applied, then apply
wp rcb unit-conversion apply --user=admin --dry-run
wp rcb unit-conversion apply --user=admin
# Restore the recipes changed by the last apply
wp rcb unit-conversion undo --user=admin
| Command | Options |
|---|---|
scan |
--ids=<ids> only these post IDs (comma-separated) · --state=<state> only none, partial, switcher, full or nothing · --format=<format> table, csv, json or count |
preview |
--ids=<ids> · --written=<system> us or metric, the system the recipes are written in (default: detected per recipe) · --engine=<engine> standard or ai · --include-review also preview recipes that need review · --dry-run list without converting |
apply |
--ids=<ids> · --include-warnings also apply previews with warnings · --switcher-off don’t turn on the US/Metric switcher · --dry-run · --yes skip the confirmation |
undo |
--yes skip the confirmation |
Each apply command is one run: undo restores the most recent run, whether it was applied from the command line or from the Convert Units page. Run wp help rcb unit-conversion for the full reference.
What’s Next?