esc_html__('Bsquare demo data import', 'bsquare'), 'categories' => array( 'Category 1' ), 'import_file_url' => 'http://wordpressvilla.com/demo/bsquare.WordPress.xml', 'import_widget_file_url' => 'http://wordpressvilla.com/demo/wordpressvilla.com-native-widgets.wie', 'import_customizer_file_url' => 'http://wordpressvilla.com/demo/bsquare-export.dat', 'import_preview_image_url' => 'http://wordpressvilla.com/demo/bsquare.png', 'import_notice' => 'After you import this demo, Just Use and have fun' , ), ); } add_filter( 'pt-ocdi/import_files', 'ocdi_import_files' ); function ocdi_plugin_intro_text( $default_text ) { $default_text .= '

Please click on the Import Demo Data button and wait for importing demo data. It may take a few minutes.

theme-screenshot
'; return $default_text; } add_filter( 'pt-ocdi/plugin_intro_text', 'ocdi_plugin_intro_text' ); function bsuare_after_import_setup() { // Assign menus to their locations. $main_menu = get_term_by( 'name', 'Menu_one', 'nav_menu' ); $main_menuu = get_term_by( 'name', 'Footer_menu', 'nav_menu' ); set_theme_mod( 'nav_menu_locations', array( 'menu-1' => $main_menu->term_id, // replace 'main-menu' here with the menu location identifier from register_nav_menu() function 'menu-2' => $main_menuu->term_id, // replace 'main-menu' here with the menu location identifier from register_nav_menu() function ) ); // Assign front page and posts page (blog page). $front_page_id = get_page_by_title( 'Home' ); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); } add_action( 'pt-ocdi/after_import', 'bsuare_after_import_setup' );