| @@ -258,14 +258,16 @@ | ||
| 258 | 258 | 'browser_header' => __( 'Settings', 'booking' ) . ' - ' . __( 'Booking Calendar', 'booking' ), |
| 259 | 259 | 'user_role' => get_bk_option( 'booking_user_role_settings' ), |
| 260 | 260 | ) ); |
| 261 | 261 | |
| 262 | - if ( ( wpbc_is_user_can_access_wizard_page() ) && ( ! wpbc_setup_wizard_page__is_all_steps_completed() ) ) { | |
| 262 | + if ( wpbc_is_user_can_access_wizard_page() ) { | |
| 263 | 263 | |
| 264 | - $setup_steps = new WPBC_SETUP_WIZARD_STEPS(); | |
| 264 | + $setup_steps = new WPBC_SETUP_WIZARD_STEPS(); | |
| 265 | + $is_setup_menu_visible = wpbc_setup_wizard_is_initial_install_site() | |
| 266 | + && ! $setup_steps->db__is_all_steps_completed(); | |
| 265 | 267 | |
| 266 | 268 | self::$instance->admin_menu['setup'] = new WPBC_Admin_Menus( 'wpbc-setup', array( |
| 267 | - 'in_menu' => 'wpbc', | |
| 269 | + 'in_menu' => $is_setup_menu_visible ? 'wpbc' : false, | |
| 268 | 270 | 'menu_title' => $setup_steps->get_plugin_menu_title__setup_progress(), |
| 269 | 271 | 'page_header' => ucwords( __( 'Setup', 'booking' ) ), |
| 270 | 272 | 'browser_header' => ucwords( __( 'Setup', 'booking' ) ) . ' - ' . __( 'Booking Calendar', 'booking' ), |
| 271 | 273 | 'user_role' => get_bk_option( 'booking_user_role_settings' ), |