[ad_1]
Hi,
I finally found a way.
I exported all forms in json from the dev site and put the file in the plugin.
I’m using the acfe function acfe_import_form($args) to import forms on my plugin activation.
I’m running something like that (inside my plugin class) :
$acfe_forms_file = self::get_plugin_dir() . "acfe_forms_settings.json";
if ( file_exists( $acfe_forms_file ) && function_exists( 'acfe_import_form' ) ) {
acfe_import_form( file_get_contents( $acfe_forms_file ) );
}- This reply was modified 10 minutes ago by Agent 3W.
- This reply was modified 10 minutes ago by Agent 3W.
