WooCommerce Code Reference

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

Properties

Methods

get_active_version()

Return the active version of WC Admin.

public static get_active_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
Return values
mixed