HEX
Server: Apache/2.4.54 (Debian)
System: Linux f988254d8f22 6.8.0-87-generic #88~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 14:03:14 UTC 2 x86_64
User: (1000)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/hitmag-pro/demo-content/setup.php
<?php

/**
 * Import files.
 */
function hitmag_pro_import_files() {
  return array(
    array(
      'import_file_name'             => 'Demo Content',
      'local_import_file'            => trailingslashit( get_template_directory() ) . 'demo-content/demo-content.xml',
      'local_import_widget_file'     => trailingslashit( get_template_directory() ) . 'demo-content/demo-widgets.wie',
      'local_import_customizer_file' => trailingslashit( get_template_directory() ) . 'demo-content/demo-customizer.dat'
    )
  );
}
add_filter( 'pt-ocdi/import_files', 'hitmag_pro_import_files' );

/**
 * Define actions after demo import.
 */
function hitmag_pro_after_import_setup() {
	// Assign menus to their locations.
    $main_menu = get_term_by( 'name', 'Main Menu', 'nav_menu' );
    $top_menu = get_term_by( 'name', 'Top Menu', 'nav_menu' );
    $social_menu = get_term_by( 'name', 'Social Menu', 'nav_menu' );

    set_theme_mod( 'nav_menu_locations', 
        array(
            'menu-1'        => $main_menu->term_id,
            'menu-2'        => $top_menu->term_id,
            'menu-social'   => $social_menu->term_id
		)
	);

	// Assign front page and posts page (blog page).
	$front_page_id = get_page_by_title( 'Home' );
	$blog_page_id  = get_page_by_title( 'Blog' );

	update_option( 'show_on_front', 'page' );
	update_option( 'page_on_front', $front_page_id->ID );
	update_option( 'page_for_posts', $blog_page_id->ID );

}
add_action( 'pt-ocdi/after_import', 'hitmag_pro_after_import_setup' );

/**
 * Remove branding
 */
add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' );