Automattic\WooCommerce\Admin
FeaturePlugin{}└─ DeprecatedClassFacade
Устарела с версии since 6.4.0. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Feature plugin main class.
Хуков нет.
Использование
$FeaturePlugin = new FeaturePlugin(); // use class methods
Методы
- public init()
- public instance()
- ERROR: no method name found on line ``
- protected __construct()
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
Список изменений
| Устарела | С версии 6.4. | 0 |
Код FeaturePlugin{} FeaturePlugin{} WC 11.3.0
class FeaturePlugin extends DeprecatedClassFacade {
/**
* The name of the non-deprecated class that this facade covers.
*
* @var string
*/
protected static $facade_over_classname = 'Automattic\WooCommerce\Internal\Admin\FeaturePlugin';
/**
* The version that this class was deprecated in.
*
* @var string
*/
protected static $deprecated_in_version = '6.4.0';
/**
* Constructor
*
* @return void
*/
protected function __construct() {}
/**
* Get class instance.
*
* @return object Instance.
*/
final public static function instance() {
return new static();
}
/**
* Init the feature plugin, only if we can detect both Gutenberg and WooCommerce.
*
* @deprecated 6.4.0
*/
public function init() {}
}