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 | core/wpbc-core.php +28 -1 11.111.8.3 View file →
@@ -1,4 +1,4 @@
1 1 <?php
2 2 /**
3 3 * @version 1.0
4 4 * @package Booking Calendar
@@ -20,9 +20,36 @@
20 20 // ---------------------------------------------------------------------------------------------------------------------
21 21 // Internal plugin action hooks system
22 22 // ---------------------------------------------------------------------------------------------------------------------
23 23 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
24 -global $wpbc_bk_action, $wpbc_bk_filter;
24 +global $wpbc_bk_action, $wpbc_bk_filter;
25 +
26 +
27 +/**
28 + * Mark whether destructive Booking Calendar deactivation is running in this request.
29 + *
30 + * WordPress cannot unload plugin PHP after deactivate_plugins() is called. This
31 + * state lets already-loaded Pro and MultiUser callbacks avoid using deleted data.
32 + *
33 + * @param bool $is_deactivating Whether deactivation is in progress.
34 + */
35 +function wpbc_set_plugin_deactivation_state( $is_deactivating ) {
36 + global $wpbc_plugin_deactivation_in_progress;
37 +
38 + $wpbc_plugin_deactivation_in_progress = (bool) $is_deactivating;
39 +}
40 +
41 +
42 +/**
43 + * Check whether destructive Booking Calendar deactivation is running.
44 + *
45 + * @return bool
46 + */
47 +function wpbc_is_plugin_deactivation_in_progress() {
48 + global $wpbc_plugin_deactivation_in_progress;
49 +
50 + return ! empty( $wpbc_plugin_deactivation_in_progress );
51 +}
25 52
26 53
27 54 function add_bk_filter( $filter_type, $filter ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound
28 55 global $wpbc_bk_filter;