esc_html__( 'Kirki Customizer Framework', 'bizness' ), // Name of the plugin. 'slug' => 'kirki', // Plugin slug - the same as on WordPress.org plugin repository. 'required' => false, // If the plugin is required or not. ], [ 'name' => esc_html__( 'Contact Form 7', 'bizness' ), // Name of the plugin. 'slug' => 'contact-form-7', // Plugin slug - the same as on WordPress.org plugin repository. 'required' => false, // If the plugin is required or not. ], [ 'name' => esc_html__( 'WooCommerce', 'bizness' ), // Name of the plugin. 'slug' => 'woocommerce', // Plugin slug - the same as on WordPress.org plugin repository. 'required' => false, // If the plugin is required or not. ], ]; return array_merge( $plugins, $theme_plugins ); } /** * Demo files setup * * @return mixed */ public function bizness_import_files() { return [ [ 'import_file_name' => esc_html__( 'Default', 'bizness' ), 'categories' => [ 'Free', 'Bizness' ], 'import_file_url' => esc_url( 'https://demo.excelthemes.com/public_html/wp-content/uploads/demos/bizness/content.xml' ), 'import_widget_file_url' => esc_url( 'https://demo.excelthemes.com/public_html/wp-content/uploads/demos/bizness/widgets.wie' ), 'import_customizer_file_url' => esc_url( 'https://demo.excelthemes.com/public_html/wp-content/uploads/demos/bizness/customizer.dat' ), 'import_preview_image_url' => esc_url( 'https://demo.excelthemes.com/public_html/wp-content/uploads/demos/bizness/screenshot.png' ), 'preview_url' => esc_url( 'http://demo.excelthemes.com/bizness/' ), ], ]; } /** * Set site after import * */ public function bizness_after_import_setup() { // Assign menus to their locations. $main_menu = get_term_by( 'name', 'Primary Menu', 'nav_menu' ); set_theme_mod( 'nav_menu_locations', [ 'menu-1' => $main_menu->term_id, // replace 'main-menu' here with the menu location identifier from register_nav_menu() function in your theme. ] ); $footer_menu = get_term_by( 'name', 'Footer Menu', 'nav_menu' ); set_theme_mod( 'nav_menu_locations', [ 'menu-2' => $footer_menu->term_id, // replace 'main-menu' here with the menu location identifier from register_nav_menu() function in your theme. ] ); // 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 ); } } Bizness_Ocdi::get_instance();