Main
in package
Doctors Slot Booking Plugin by RahulK
The main plugin handler class is responsible for initializing Plugin.
Tags
Table of Contents
Properties
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
$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
__wakeup()
Wakeup.
public
__wakeup() : mixed
Disable unserializing of the class.
Tags
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
install()
Installation. Runs on activation.
public
install() : void
Tags
instance()
Instance.
public
static instance() : Plugin
Ensures only one instance of the plugin class is loaded or can be loaded.
Tags
Return values
Plugin —An instance of the class.
on_rest_api_init()
public
on_rest_api_init() : mixed
Tags
__construct()
Plugin constructor.+
private
__construct() : mixed
Initializing plugin.
Tags
init_components()
Init components.
private
init_components() : mixed
Tags
register_autoloader()
Register autoloader.
private
register_autoloader() : mixed
Elementor autoloader loads all the classes needed to run the plugin.