Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldsSchema
DocumentObject::set_context
Set document object context.
Метод класса: DocumentObject{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$DocumentObject = new DocumentObject(); $DocumentObject->set_context( $context );
- $context(null|строка)
- Context to set.
По умолчанию:null
Код DocumentObject::set_context() DocumentObject::set context WC 11.0.1
public function set_context( $context = null ) {
if ( ! in_array( $context, $this->valid_contexts, true ) ) {
return;
}
$this->context = $context;
}