Is it possible to use the acf-json capability, (described in http://www.advancedcustomfields.com/resources/local-json/) inside a plugin? Can I generate the Custom Fields as .json files and just put it into the corresponding acf-json plugin folder to make the custom fields update automatically?
What is the proper way to include ACF PRO inside a plugin, since we cannot use get_stylesheet_directory() or get_stylesheet_directory_uri() as explained in http://www.advancedcustomfields.com/resources/including-acf-in-a-plugin-theme/?
Hi @joao_paulin
Yes, you can use the local json feature to include fields within a plugin. To find the plugin’s url/path, please use these functions:
path: plugin_dir_path( __FILE__ )
url: plugin_dir_url( __FILE__ )