# booking/11.8.3/core/wpbc_welcome.php

Booking Calendar, version 11.8.3. 321 lines.

- Page: https://pluginprobe.com/plugins/booking/11.8.3/code/core/wpbc_welcome.php
- Raw: https://pluginprobe.com/plugins/booking/11.8.3/raw/core/wpbc_welcome.php
- Modified: 2026-09-12T17:01:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/booking/11.8.3/code/core/wpbc_welcome.php#L10-L20`.

```php
<?php
/**
 * @version 1.0
 * @package Booking Calendar
 * @subpackage Welcome Panel Functions
 * @category Functions
 *
 * @author wpdevelop
 * @link https://wpbookingcalendar.com/
 * @email info@wpbookingcalendar.com
 *
 * @modified 2023-10-24
 */

if ( ! defined( 'ABSPATH' ) ) exit;                                             // Exit if accessed directly


// <editor-fold     defaultstate="collapsed"                        desc="  ==  Welcome Content  2 ==  2024-11-06 "  >

function wpbc_welcome_panel() {

	if ( ! wpbc_is_user_can_access_wizard_page() ){
		return;
	}

	$is_live_demo = wpbc_is_this_demo();

	?><script type="text/javascript">
			jQuery( document ).ready( function (){
				jQuery( document ).on( 'click.wpbcWelcomePanelDemo', '[data-wpbc-welcome-panel-demo-dismiss]', function () {
					jQuery( '#wpbc_welcome_panel__version2' ).slideUp( 500 );
				} );
				setTimeout( function (){
					if ( jQuery( '[data-wpbc-booking-pages-open-dialog]' ).length ) {
						return;
					}
					if ( jQuery( '#wpbc_welcome_panel__version2' ).is( ':visible' ) ){
						jQuery( '#wpbc_welcome_panel__version2' ).slideUp( 1000 );
					}
				}, 60000 );
			} );
		</script>
		<div id="wpbc_welcome_panel__version2" style="display:<?php echo esc_attr( $is_live_demo ? 'block' : 'none' ); ?>;">
			<?php
				if ( $is_live_demo ) {
					$is_panel_visible = true;
					?>
					<button
						type="button"
						class="wpbc_panel_get_started_dismiss0 wpbc_welcome_panel__dismiss"
						data-wpbc-welcome-panel-demo-dismiss="1"
						aria-label="<?php esc_attr_e( 'Dismiss', 'booking' ); ?>"
						title="<?php esc_attr_e( 'Dismiss', 'booking' ); ?>"
					>
						<i class="menu_icon icon-1x wpbc_icn_close" aria-hidden="true"></i>
					</button>
					<?php
				} else {
					$is_panel_visible = wpbc_is_dismissed(
						'wpbc_welcome_panel__version2',
						array(
							'title' => '<i class="menu_icon icon-1x wpbc_icn_close" aria-hidden="true"></i><span class="screen-reader-text">' . esc_html__( 'Dismiss', 'booking' ) . '</span>',
							'hint'  => __( 'Dismiss', 'booking' ),
							'class' => 'wpbc_panel_get_started_dismiss0 wpbc_welcome_panel__dismiss',
							'css'   => '',
						)
					);
				}
				if ( $is_panel_visible ) {
					wpbc_welcome_panel__version2__content();
				}
			?>
		</div><?php
}

function wpbc_welcome_panel__version2__content() {

	?><div class="wpbc_welcome_panel"><?php

		wpbc_ui_settings__panel__welcome();

	?></div><?php
}


// ---------------------------------------------------------------------------------------------------------------------
//  Panel  == Plugin Version | & Buttons ==
// ---------------------------------------------------------------------------------------------------------------------

/**
 * Show Settings Statistic | Agenda Panel
 *
 * @return void
 */
function wpbc_ui_settings__panel__welcome(){

	?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__welcome"><?php

		wpbc_ui_settings__panel_start();

			wpbc_ui_settings__panel__welcome__header();


			wpbc_ui_settings_panel__card__open_test_pages_popup();

			wpbc_ui_settings_panel__card__setup_wizard();

			wpbc_ui_settings_panel__card__version();

			?><div style="flex:100%;border-bottom: 1px solid #eeeff1;"></div><?php		// Divider

			wpbc_ui_settings_panel__card__integreate_into_new();
			wpbc_ui_settings_panel__card__shortcodes_help();
			wpbc_ui_settings_panel__card__welcome__have_questions();

			//wpbc_ui_settings_panel__card__welcome__next_steps();
	wpbc_ui_settings__panel_end();

	?></div><?php
}


	function wpbc_ui_settings__panel__welcome__header() {

		?><div class="wpbc_ui_settings__panel__welcome_header">
			<p class="about-description"><?php esc_html_e( 'We&#8217;ve assembled some links to get you started:', 'booking' ); ?></p>
		</div><?php
	}




	/**
	 * Show   == Dashboard Card  -  integreate into new  ==
	 *
	 * @return void
	 */
	function wpbc_ui_settings_panel__card__integreate_into_new(){



		?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__publish_into_new">
			<div class="wpbc_ui_settings__text_row">
				<i class="menu_icon icon-1x wpbc-bi-box-arrow-in-down-left"></i>
				<h1>
					<span>
						<span class="0wpbc_ui_settings__text_color__black2"><?php esc_html_e( 'Insert shortcode in a page', 'booking' ); ?></span>
					</span>
				</h1>
			</div>
			<div class="wpbc_ui_settings__text_row">
				<span class="wpbc_ui_settings__text_color__black">
					<?php
					esc_html_e( 'Integrate booking form into a page on your website.', 'booking' );
					?>
				</span>
			</div>
			<div style="align-self:center;margin: 0px 0 0;" class="wpbc_flextable_col">
				<?php

				?>
				<div class="wpbc_ajx_toolbar wpbc_no_borders" style="margin: 0 auto;margin-top: 15px;">
					<div class="ui_container ui_container_small">
						<div class="ui_group ui_group__publish_btn"  style="align-items: center;">
							<div class="ui_element" style="margin: 0 15px 0 0;">
								<a href="<?php echo esc_url( wpbc_get_resources_url() ); ?>"
								   id="ui_btn_publish_into_exist" class="wpbc_ui_control wpbc_ui_button wpbc_ui_button_danger0 tooltip_top "
								   title="<?php echo esc_attr(
																sprintf( __( 'Integrate booking form into a page on your website.', 'booking' ), '', '' )
										); ?>"  >
										<span><?php esc_html_e('Integrate booking form', 'booking'); ?>&nbsp;&nbsp;&nbsp;</span>
										<i class="menu_icon icon-1x wpbc-bi-arrow-right-short" style="margin: 0;"></i>
								</a>
							</div>
						</div>
					</div>
				</div>
				<?php

				?>
			</div>

		</div><?php
	}


	/**
	 * Show   == Dashboard Card  -  Shortcodes Help  ==
	 *
	 * @return void
	 */
	function wpbc_ui_settings_panel__card__shortcodes_help(){

		?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__publish_into_new">
			<div class="wpbc_ui_settings__text_row">
				<i class="menu_icon icon-1x wpbc_icn_code"></i>
				<h1>
					<span>
						<span class="0wpbc_ui_settings__text_color__black2"><?php esc_html_e( 'Shortcodes', 'booking' ); ?></span>
					</span>
				</h1>
			</div>
			<div class="wpbc_ui_settings__text_row">
				<span class="wpbc_ui_settings__text_color__black">
					<ul>
						<li style="font-size: 0.94em;"><span class="welcome-icon"><?php

								/* translators: 1: ... */
								$text_description = __( 'Learn how to %1$sAdd the Booking Form or Calendar to your page%2$s in WordPress Block Editor, Elementor, or other non-standard editors.', 'booking' );
								// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
								printf( $text_description, '<strong><a href="https://wpbookingcalendar.com/faq/insert-booking-calendar-into-page/" target="_blank">', '</a></strong>' );

							echo '</span> <span class="welcome-icon">';

								/* translators: 1: ... */
								$text_description = __( 'See %1$sall shortcodes%2$s of the Booking Calendar that you can use in pages.', 'booking' );
								// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
								printf( $text_description, '<strong><a href="https://wpbookingcalendar.com/faq/#shortcodes" target="_blank">', '</a></strong>' );

						?></span></li>
					</ul>
				</span>
			</div>
		</div><?php
	}


	/**
	 * Show   == Dashboard Card  -  Next Steps  ==
	 *
	 * @return void
	 */
	function wpbc_ui_settings_panel__card__welcome__next_steps(){

		?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__welcome__next_steps">
			<div class="wpbc_ui_settings__text_row">
				<i class="menu_icon icon-1x wpbc_icn_code"></i>
				<h1>
					<span>
						<span class="0wpbc_ui_settings__text_color__black2"><?php esc_html_e( 'Next Steps', 'booking' ); ?></span>
					</span>
				</h1>
			</div>
			<div class="wpbc_ui_settings__text_row">
				<span class="wpbc_ui_settings__text_color__black">
					<ul>

						<?php if ( ! empty( $wp_post_booking_absolute ) ) { ?>
						<li><div class="welcome-icon"><?php
							/* translators: 1: ... */
							echo esc_html( sprintf( __( 'Start creating %1$snew bookings%2$s from %3$syour page%4$s or in the %5$sAdmin Panel%6$s.', 'booking' )
									, '<strong>', '</strong>'
									, '<strong><a href="' . esc_url( $wp_post_booking_absolute ) . '" target="_blank">', '</a></strong>'
									, '<a href="' . esc_url( wpbc_get_new_booking_url() ) . '">', '</a>'
									) );
						?></div></li>
						<?php } ?>

						<li><div class="welcome-icon"><?php
							/* translators: 1: ... */
							echo esc_html( sprintf( __( 'Check %1$sBooking Listing%2$s page for new bookings.', 'booking' )
										, '<a href="' . esc_url( wpbc_get_bookings_url(true, false) . '&tab=vm_booking_listing' ) . '">', '</a>'
									) );
						?></div></li>
						<li><div class="welcome-icon"><?php
							/* translators: 1: ... */
							echo esc_html( sprintf( __( 'Configure  %1$sForm Fields%2$s, %3$sEmails%4$s and other %5$sSettings%6$s.', 'booking' )
										, '<a href="' . esc_url( wpbc_get_settings_url(true, false) . '&tab=builder_booking_form' ) . '">', '</a>'
										, '<a href="' . esc_url( wpbc_get_settings_url(true, false) . '&tab=email' ) . '">', '</a>'
										, '<a href="' . esc_url( wpbc_get_settings_url(true, false) ) . '">', '</a>'
									) );
						?></div></li>
					</ul>
				</span>
			</div>
		</div><?php
	}


	/**
	 * Show   == Dashboard Card  -  Have a questions?  ==
	 *
	 * @return void
	 */
	function wpbc_ui_settings_panel__card__welcome__have_questions(){

		?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right0 wpbc_ui_settings_panel__card__welcome__have_questions">
			<div class="wpbc_ui_settings__text_row">
				<i class="menu_icon icon-1x wpbc_icn_help_outline"></i>
				<h1>
					<span>
						<span class="0wpbc_ui_settings__text_color__black2"><?php esc_html_e( 'Have a questions?', 'booking' ); ?></span>
					</span>
				</h1>
			</div>
			<div class="wpbc_ui_settings__text_row">
				<span class="wpbc_ui_settings__text_color__black">
					<ul>
						<li><span class="welcome-icon"><?php

								/* translators: 1: ... */
								$text_description = __( 'See %1$sFAQ%2$s.', 'booking' );
								// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
								printf( $text_description, '<a href="https://wpbookingcalendar.com/faq/" target="_blank">', '</a> , ' . '<a href="https://wpbookingcalendar.com/support/" target="_blank">' . esc_html__( 'Support Forum', 'booking' ) . '</a>' );
							echo '</span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="welcome-icon">';
								/* translators: 1: ... */
								$text_description = __( 'Contact %1$sSupport%2$s.', 'booking' );
								// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
								printf( $text_description, '<a href="mailto:support@wpbookingcalendar.com" target="_blank">', '</a>' );
						?></span></li>
				</span>
			</div>
		</div><?php
	}



// </editor-fold>



```
