kb_config_obj->get_kb_config( $kb_id ); // create demo data for the current KB if no categories exist yet EPKB_KB_Demo_Data::create_sample_categories_and_articles( $kb_id, $kb_config['kb_main_page_layout'] ); // we are done here EPKB_Utilities::ajax_show_info_die( esc_html__( 'Demo categories and articles have been created. The page will reload.', 'echo-knowledge-base' ) ); } }