Booking calendar, Appointment Booking System Shortcode

Below, you’ll find a detailed guide on how to add the Booking calendar, Appointment Booking System Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Booking calendar, Appointment Booking System Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Booking calendar, Appointment Booking System Plugin and the shortcodes it provides:

Plugin Icon
Booking calendar, Appointment Booking System

"Booking Calendar, Appointment Booking System is a comprehensive WordPress plugin. It simplifies scheduling by allowing users to book appointments and manage bookings directly on your website."

★★★★☆ (113) Active Installs: 4000+ Tested with: 6.2.3 PHP Version: false
Included Shortcodes:
  • [WPDEVART_PLUGIN_PREFIX."_booking_calendar"]

Booking calendar, Appointment Booking System [WPDEVART_PLUGIN_PREFIX.”_booking_calendar”] Shortcode

The WPDevArt Booking Calendar shortcode is a powerful tool for embedding a booking calendar into your WordPress site. This shortcode uses the ‘id’ parameter to pull and display a specific booking calendar. If no ‘id’ is provided, the function returns nothing. Each time the shortcode is used, the booking count increases by one.

Shortcode: [WPDEVART_PLUGIN_PREFIX."_booking_calendar"]

Parameters

Here is a list of all possible WPDEVART_PLUGIN_PREFIX.”_booking_calendar” shortcode parameters and attributes:

  • id – The unique identifier of the booking calendar.

Examples and Usage

Basic example – Showcases a simple usage of the booking calendar shortcode by referencing the ID of the calendar.

[WPDEVART_PLUGIN_PREFIX_booking_calendar id=1 /]

Advanced examples

Illustrates the usage of the booking calendar shortcode with multiple parameters. In this example, we are referencing the ID of the calendar and also specifying additional parameters. Note: The additional parameters will be dependent on the functionality provided by the WPDevArt Booking Calendar plugin.

[WPDEVART_PLUGIN_PREFIX_booking_calendar id=1 param1=value1 param2=value2 /]

It’s important to replace WPDEVART_PLUGIN_PREFIX with the actual prefix of the WPDevArt Booking Calendar plugin. Additionally, replace param1, value1, param2, value2 with the actual parameters and values you want to use.

PHP Function Code

In case you have difficulties debugging what causing issues with [WPDEVART_PLUGIN_PREFIX."_booking_calendar"] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode(WPDEVART_PLUGIN_PREFIX."_booking_calendar", array($this,'shortcodes'));

Shortcode PHP function:

function shortcodes($attr) {
		extract(shortcode_atts(array(
			'id' => null
		), $attr, WPDEVART_PLUGIN_PREFIX));
		if (empty($id)) {
			return;
		}
		$result = $this->wpdevart_booking_calendar($id);
		self::$booking_count += 1;
		return  $result;
	}

Code file location:

booking-calendar/booking-calendar/booking_calendar.php

Conclusion

Now that you’ve learned how to embed the Booking calendar, Appointment Booking System Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *