Documentation

Main
in package

Doctors Slot Booking Plugin by RahulK

The main plugin handler class is responsible for initializing Plugin.

Tags
since
1.0.0

Table of Contents

Properties

$instance  : Plugin
Instance.
$token  : mixed

Methods

__clone()  : mixed
Clone.
__wakeup()  : mixed
Wakeup.
deactivation()  : mixed
Deactivation Hook
init()  : mixed
Init.
install()  : void
Installation. Runs on activation.
instance()  : Plugin
Instance.
on_rest_api_init()  : mixed
__construct()  : mixed
Plugin constructor.+
init_components()  : mixed
Init components.
register_autoloader()  : mixed
Register autoloader.

Properties

$instance

Instance.

public static Plugin $instance = null

Holds the plugin instance.

Tags
since
1.0.0
access

public

static

$token

private mixed $token

Methods

__clone()

Clone.

public __clone() : mixed

Disable class cloning and throw an error on object clone.

The whole idea of the singleton design pattern is that there is a single object. Therefore, we don't want the object to be cloned.

Tags
access

public

since
1.0.0

__wakeup()

Wakeup.

public __wakeup() : mixed

Disable unserializing of the class.

Tags
access

public

since
1.0.0

deactivation()

Deactivation Hook

public deactivation() : mixed

init()

Init.

public init() : mixed

Initialize Plugin. Register support for all the supported post types and initialize components.

Tags
since
1.0.0
access

public

install()

Installation. Runs on activation.

public install() : void
Tags
access

public

since
1.0.0

instance()

Instance.

public static instance() : Plugin

Ensures only one instance of the plugin class is loaded or can be loaded.

Tags
since
1.0.0
access

public

static
Return values
Plugin

An instance of the class.

on_rest_api_init()

public on_rest_api_init() : mixed
Tags
since
1.0.0
access

public

__construct()

Plugin constructor.+

private __construct() : mixed

Initializing plugin.

Tags
since
1.0.0
access

private

init_components()

Init components.

private init_components() : mixed
Tags
since
1.0.0
access

private

register_autoloader()

Register autoloader.

private register_autoloader() : mixed

Elementor autoloader loads all the classes needed to run the plugin.

Tags
since
1.6.0
access

private


        
On this page

Search results