PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | includes/page-setup/setup_support.php +21 -5 11.811.8.3 View file →
@@ -9,13 +9,29 @@
9 9 *
10 10 * @modified 2024-09-06
11 11 */
12 12
13 -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14 -
15 -
16 -/**
17 - * Do we need to start 'Setup Wizard' ?
13 +if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14 +
15 +
16 +/**
17 + * Check whether this site was initialized by the current first-install flow.
18 + *
19 + * This persisted marker is intentionally separate from wizard completion and
20 + * prompt dismissal. It prevents plugin updates from adding the native Setup menu
21 + * while allowing a new administrator to postpone the popup and return through
22 + * that menu later.
23 + *
24 + * @return bool True for sites marked during genuine first installation.
25 + */
26 +function wpbc_setup_wizard_is_initial_install_site() {
27 +
28 + return 'On' === get_bk_option( 'booking_setup_wizard_initial_install' );
29 +}
30 +
31 +
32 +/**
33 + * Do we need to start 'Setup Wizard' ?
18 34 *
19 35 * @return bool
20 36 */
21 37 function wpbc_setup_wizard_page__is_need_start(){