How i can let user import or export options ? for example theme options.
Edit:
Another question :
How i can let user resets a field value ?
Thanks.
Hi @wp-src ,
Sorry for the (very) late reply.
How i can let user import or export options ?
Currently, Carbon Fields do not include a tool to export your theme options. However, note that these values are stored in the wp_options table so you can export/import them manually through PhpMyAdmin, for example.
How i can let user resets a field value?
There is no way to reset a field's value to it's default as defined by set_default_value(), at this time. We may look into adding such functionality in the future.
@atanas-angelov-dev Thanks for reply.
Nice to have this features on later versions.
For export and import feature i think even a simple field for export and import widgets and theme options is very good.
One more thing that i think must being added to the framework is the ability to create a field on the fly.
for example a field that do not belongs to any container or a container that can be loaded everywhere !
For example lets say i want create a form which can be accessed from any page or specific pages or in frontend (for administrator) in this cases ability to use carbon fields for handling process of load values, adding the to field and saving values is very nice and adds a unique feature to the framework. Even if this feature is not possible at least describing how to manually load the framework in any page is good.
You can write your own custom container and define the condition under which the container should be loaded. For example, take a look at the Comment_Meta_Container ( https://github.com/htmlburger/carbon-fields/blob/master/core/Container/Comment_Meta_Container.php ).
Note that currently containers and fields are not loaded in the front end so showing and using them there may prove to be problematic.
WP all import/export is a great tool. They currently have an ACF add-on which works really nice. Having a Carbon Fields add-on would be a game changer. We should encourage them to build it for this awesome community. @soflyy
WP all import/export is a great tool.
Interesting that you mention that. I agree that it is a great tool. 2.x has been having some weird conflicts with WP All Export Pro when the order of operations aren't done correctly. I'll have to replicate the issue when I have time so that I can post it. It's not really an issue when you Carbon correctly, however, when you mess up and it throws an error on wp-all-export-pro on line {irrelevant}... It makes it silly to debug. #digression
For export and import feature i think even a simple field for export and import widgets and theme options is very good.
Anyway, I too would like import/export fields. I think that the way Xbox does it could be a decent model.

Most helpful comment
WP all import/export is a great tool. They currently have an ACF add-on which works really nice. Having a Carbon Fields add-on would be a game changer. We should encourage them to build it for this awesome community. @soflyy