Search code examples
phpwordpresscarbon-fields

Is it possible to update Carbon Fields using update_post_meta


I have a plugin that uses the Carbon Fields SDK and in another plugin I would like to update that field without requiring the Carbon Library.

Is it possible, or are there any pitfalls, to simply doing something like:

update_user_meta($id, '_carbon_field_name', 'meta value');

or does one have to use the native carbon functions?


Solution

  • It should work:

    update_user_meta($id, '_carbon_meta_key', 'meta value');