# booktics/1.0.21/core/shortcode/booking-shortcode.php

Booktics – Appointment Booking Calendar for Service Businesses, version 1.0.21. 38 lines.

- Page: https://pluginprobe.com/plugins/booktics/1.0.21/code/core/shortcode/booking-shortcode.php
- Raw: https://pluginprobe.com/plugins/booktics/1.0.21/raw/core/shortcode/booking-shortcode.php
- Modified: 2026-05-20T13:51:06+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/booktics/1.0.21/code/core/shortcode/booking-shortcode.php#L10-L20`.

```php
<?php
namespace Booktics\Shortcode;

/**
 * Booking shortcode class
 */
class Booking_Shortcode {
    /**
     * Constructor for booking shortcode
     *
     * @return  void
     */
    public function __construct() {
        add_shortcode( 'booktics_booking_form', array( $this, 'render_booking_form' ) );
    }


    /**
     * Render booking form
     *
     * @param   array  $attributes
     *
     * @return  string
     */
    public function render_booking_form( $attributes ) {
        wp_enqueue_style( 'booktics-vendor' );
        wp_enqueue_style( 'booktics-frontend' );

        wp_enqueue_script( 'booktics-packages' );
        wp_enqueue_script( 'booktics-frontend-scripts' );
        wp_enqueue_script( 'booktics-flatpickr-scripts' );
        
        do_action( 'booktics_before_rendering_booking_form_shortcode' );

        return '<div id="booktics-booking-form"></div>';
    }
}

```
