• Hi,
    I have tested your plug-in, but i couldn’t able to see the predefined demos in the plug-in settings. i have followed your instruction.

    function ctdi_import_files() {
    return array(
    array(
    ‘import_file_name’ => ‘Demo 1’,
    ‘local_import_file’ => trailingslashit( get_template_directory() ) . ‘demo/style1/demo1-content.xml’,
    ‘local_import_widget_file’ => trailingslashit( get_template_directory() ) . ‘demo/style1/demo1-widgets.wie’,
    ‘local_import_customizer_file’ => trailingslashit( get_template_directory() ) . ‘demo/style1/demo1-customizer.dat’,
    ‘import_preview_image_url’ => trailingslashit( get_template_directory_uri() ) . ‘demo/style1/style1_preview.png’,
    ‘import_notice’ => __( ‘After you import this demo’, ‘my-domin’ ),
    ‘preview_url’ => ‘https://mysite.com/demo1/’,
    ),
    array(
    ‘import_file_name’ => ‘Demo 1’,
    ‘local_import_file’ => trailingslashit( get_template_directory() ) . ‘demo/style2/demo2-content.xml’,
    ‘local_import_widget_file’ => trailingslashit( get_template_directory() ) . ‘demo/style2/demo2-widgets.wie’,
    ‘local_import_customizer_file’ => trailingslashit( get_template_directory() ) . ‘demo/style2/demo2-customizer.dat’,
    ‘import_preview_image_url’ => trailingslashit( get_template_directory_uri() ) . ‘demo/style2/style2_preview.png’,
    ‘import_notice’ => __( ‘After you import this demo’, ‘my-domin’ ),
    ‘preview_url’ => ‘https://mysite.com/demo2/’,
    ),
    );
    }
    add_filter( ‘cp-ctdi/import_files’, ‘ctdi_import_files’ );

  • The topic ‘Predefined demo imports Not Working’ is closed to new replies.