-
Notifications
You must be signed in to change notification settings - Fork 0
Import and Export
The administration interface of Ultimate Fields allows you to export and import containers (as well as Post Types and Taxonomies in Ultimate Post Types), which you have createted as both JSON files and PHP scripts.
You can access the Import / Export screen by clicking the Import / Export tab on the settings screen of Ultimate Fields.
You can import and export containers, created through the administration interface only. If you are using the PHP API, this article will be inapplicable to you.
JSON is a portable format, which Ultimate Fields can both generate and export, as well as read and import. This makes it suitable for situations when you'd like to back your fields up or migrate them to a different site without migrating the whole database.
If you are looking fot the JSON Synchronization article, please click here.
Containers, exported to PHP can be directly embedded within your theme/plugin. There are various benefits of doing so:
- No database calls are required to load containers, which brings a slight performance improvement.
- You can put your fields as PHP code into version control.
- You can specify a language textdomain when exporting the fields. This would allow you to localize them.
- Once fields have been exported to PHP, you may disable the administration interface of the plugin. This way users (incl. administrators) will be unable to change the fields, but they will still be loaded.
There is also a downside: Containers, exported to PHP can not be easily imported back to the database.
Quick start
- Creating fields and using their values
- Installation
- Administration interface
- Using the PHP API
- Container Settings
Locations
- Overview & Usage
- Post Type
- Options Page
- Taxonomy
- Comment
- User
- Widget
- Shortcode
- Menu Item
- Attachment
- Customizer
Fields
- Fields
- Text
- Textarea
- WYSIWYG
- Password
- Checkbox
- Select
- Multiselect
- Image Select
- File
- Image
- Audio
- Video
- Gallery
- WP Object
- WP Objects
- Link
- Date
- DateTime
- Time
- Color
- Font
- Icon
- Map
- Embed
- Number
- Sidebar
- Complex
- Repeater
- Layout
- Section
- Tab
- Message
Features
- Adding fields to the Customizer
- Conditional Logic
- Front-End Forms
- Administration columns
- Import and Export
- REST API
- JSON Synchronization
- Yoast SEO
Ultimate Post Types
Functions and API
Tutorials