Package
in package
Main package class.
Table of Contents
- VERSION = '3.3.0'
- Version.
- $active_version : bool
- Active version
- $package_active : bool
- Package active.
- get_active_version() : string
- Return the active version of WC Admin.
- get_path() : string
- Return the path to the package.
- get_version() : string
- Return the version of the package.
- init() : mixed
- Init the package.
- is_package_active() : bool
- Return whether the package is active.
- is_notes_initialized() : mixed
- Checks if notes have been initialized.
Constants
VERSION
Version.
public
string
VERSION
= '3.3.0'
Properties
$active_version
Active version
private
static bool
$active_version
= null
$package_active
Package active.
private
static bool
$package_active
= false
Methods
get_active_version()
Return the active version of WC Admin.
public
static get_active_version() : string
Return values
string —get_path()
Return the path to the package.
public
static get_path() : string
Return values
string —get_version()
Return the version of the package.
public
static get_version() : string
Return values
string —init()
Init the package.
public
static init() : mixed
Only initialize for WP 5.3 or greater.
Return values
mixed —is_package_active()
Return whether the package is active.
public
static is_package_active() : bool
Return values
bool —is_notes_initialized()
Checks if notes have been initialized.
private
static is_notes_initialized() : mixed