WP-CLI
import
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?
Thank you. It helps us make the documentation better. Need more help?