Woo_Directive_Context::__construct()
Constructor.
Accepts a context as an argument to initialize this with.
Метод класса: Woo_Directive_Context{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Woo_Directive_Context = new Woo_Directive_Context(); $Woo_Directive_Context->__construct( $context );
- $context(массив)
- A context.
По умолчанию: array()
Код Woo_Directive_Context::__construct() Woo Directive Context:: construct WC 7.7.2
woocommerce/packages/woocommerce-blocks/src/Interactivity/directives/class-woo-directive-context.php
function __construct( $context = array() ) { $this->set_context( $context ); }