Hi,
you can do that in the pt-ocdi/after_import
action hook. The code that we use in our themes, to set the front page displays is:
function ocdi_after_import_setup() {
// Assign menus to their locations.
$main_menu = get_term_by( 'name', 'Main Menu', 'nav_menu' );
set_theme_mod( 'nav_menu_locations', array(
'main-menu' => $main_menu->term_id,
)
);
// Assign front page and 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', 'ocdi_after_import_setup' );
You can delete the first bit, which assigns the menus to the correct locations.
Take care!
PS: If you like our plugin, please rate it here https://www.ads-software.com/support/plugin/one-click-demo-import/reviews/, we would really appreciate it.