FeaturePlugin
extends DeprecatedClassFacade
in package
Feature plugin main class.
Tags
Table of Contents
- $deprecated_in_version : string
- The version that this class was deprecated in.
- $facade_over_classname : string
- The name of the non-deprecated class that this facade covers.
- $instance : object
- The instance that this facade covers over.
- $logged_messages : array<string|int, mixed>
- Static array of logged messages.
- __call() : mixed
- Executes when calling any function on an instance of this class.
- __callStatic() : mixed
- Executes when calling any static function on this class.
- init() : mixed
- Init the feature plugin, only if we can detect both Gutenberg and WooCommerce.
- instance() : object
- Get class instance.
- __construct() : void
- Constructor
- log_deprecation() : mixed
- Log a deprecation to the error log.
Properties
$deprecated_in_version
The version that this class was deprecated in.
protected
static string
$deprecated_in_version
= '6.4.0'
$facade_over_classname
The name of the non-deprecated class that this facade covers.
protected
static string
$facade_over_classname
= 'Automattic\WooCommerce\Internal\Admin\FeaturePlugin'
$instance
The instance that this facade covers over.
protected
object
$instance
$logged_messages
Static array of logged messages.
private
static array<string|int, mixed>
$logged_messages
= array()
Methods
__call()
Executes when calling any function on an instance of this class.
public
__call(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
- $name : string
-
The name of the function being called.
- $arguments : array<string|int, mixed>
-
An array of the arguments to the function call.
Return values
mixed —__callStatic()
Executes when calling any static function on this class.
public
static __callStatic(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
- $name : string
-
The name of the function being called.
- $arguments : array<string|int, mixed>
-
An array of the arguments to the function call.
Return values
mixed —init()
Init the feature plugin, only if we can detect both Gutenberg and WooCommerce.
public
init() : mixed
Tags
Return values
mixed —instance()
Get class instance.
public
final static instance() : object
Return values
object — Instance.__construct()
Constructor
protected
__construct() : void
Return values
void —log_deprecation()
Log a deprecation to the error log.
private
static log_deprecation(string $function) : mixed
Parameters
- $function : string
-
The name of the deprecated function being called.