Skip to content
Custom fields for WordPress that are quick to build and quick to load. Get Pro
Docs

WP-CLI

import

1 minute to read Updated 1 week ago

Terminal
wp ugly-fields import <file>

Saves the groups, options pages and content types of a file made by export.

Argument Meaning
<file> The file to read. Required

The file goes through the same cleaning as a group made in the builder, with the same limits. A problem in one item is a warning and the rest are imported. The command only fails if nothing could be imported.

$ wp ugly-fields import ugly-backup.json
Warning: group_old: The group has a field type that does not exist.
Success: 11 item(s) imported: group_hero, group_team, …

Did this article answer your question?