Plugin_Factory
Factory to create/return the shared plugin instance.
Tags
Table of Contents
Properties
$plugin
private
static mixed
$plugin
= null
Methods
create()
Create/return the shared plugin instance.
public
static create(string $file[, string $version = '1.0' ]) : Plugin
Parameters
- $file : string
-
The main plugin file.
- $version : string = '1.0'
-
The current version.
Return values
Plugin —The plugin instance.