Skip to content

Instantly share code, notes, and snippets.

@hasanm95
Created January 20, 2018 06:00
Show Gist options
  • Save hasanm95/bff49588b7281360a4402bce27ec0087 to your computer and use it in GitHub Desktop.
Save hasanm95/bff49588b7281360a4402bce27ec0087 to your computer and use it in GitHub Desktop.
function rrf_industry_import_files() {
return array(
array(
'import_file_name' => esc_html__('Demo Import', 'rrf-industry'),
'local_import_file' => trailingslashit( get_template_directory() ) . '/inc/demo-data/rrf-industry-demo.xml',
'local_import_widget_file' => trailingslashit( get_template_directory() ) . '/inc/demo-data/rrf-industry-widgets.wie',
'local_import_customizer_file' => trailingslashit( get_template_directory() ) . '/inc/demo-data/rrf-industry-customizer.dat',
'import_notice' => esc_html__( 'After you import this demo, Just set static homepage from settings > reading. Check widgets and menus. You will be done', 'rrf-industry' ),
),
);
}
add_filter( 'pt-ocdi/import_files', 'rrf_industry_import_files' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment