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/_functions/versions.php +22 -6 11.711.8.3 View file →
@@ -247,9 +247,9 @@
247 247 * Is show upgrade link.
248 248 *
249 249 * @return bool
250 250 */
251 -function wpbc_is_show_up() {
251 +function wpbc_is_show_up() {
252 252
253 253 // $is_show_up = get_bk_option( 'booking_wpdev_copyright_adminpanel' );
254 254 // $is_show_up = ( ( 'Off' !== $is_show_up ) && ( ! class_exists( 'wpdev_bk_multiuser' ) ) );
255 255 // return $is_show_up;
@@ -255,13 +255,29 @@
255 255 // return $is_show_up;
256 256
257 257 $is_show_up = ( ( 'hide' !== get_bk_option( 'booking_menu_go_pro' ) ) && ( ! class_exists( 'wpdev_bk_multiuser' ) ) );
258 258
259 - return $is_show_up;
260 -}
261 -
262 -
263 -/**
259 + return $is_show_up;
260 +}
261 +
262 +
263 +/**
264 + * Check whether Free-edition upgrade navigation may be shown.
265 + *
266 + * This combines the existing administrator preference and MultiUser policy
267 + * with the product-edition check used by Free-only upgrade actions.
268 + *
269 + * @since 11.8.0
270 + *
271 + * @return bool True when Free-edition upgrade navigation may be rendered.
272 + */
273 +function wpbc_is_show_free_upgrade() {
274 +
275 + return wpbc_is_show_up() && ! class_exists( 'wpdev_bk_personal' );
276 +}
277 +
278 +
279 +/**
264 280 * Get Up link.
265 281 *
266 282 * @return string
267 283 */