Impossible to add import option with customizer settings only
-
I tried adding separate demo options, for the demo content and customizer settings, like this:
/** * Demos */ function ocdi_import_files() { return array( array( 'import_file_name' => esc_html__( 'Demo Content', 'text-domain' ), 'categories' => array( 'Demo Content' ), 'local_import_file' => get_template_directory() . '/framework/includes/demo-content/demo-content.xml', 'local_import_widget_file' => get_template_directory() . '/framework/includes/demo-content/widgets.json', ), array( 'import_file_name' => esc_html__( 'Demo 1', 'text-domain' ), 'categories' => array( 'Theme Settings' ), 'local_import_customizer_file' => get_template_directory() . '/framework/includes/demo-content/customizer.dat', ), array( 'import_file_name' => esc_html__( 'Demo 2', 'text-domain' ), 'categories' => array( 'Theme Settings' ), 'local_import_customizer_file' => get_template_directory() . '/framework/includes/demo-content/customizer.dat', ), ); } add_filter( 'pt-ocdi/import_files', 'ocdi_import_files' );
But seems like the plugin won’t add a Demo option without
local_import_customizer_file
.It would be nice to allow importing Customizer settings only. Because the user won’t have duplicate content then: they import the demo content once and then can switch between demos, based on the Customizer settings.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Impossible to add import option with customizer settings only’ is closed to new replies.