Automattic\WooCommerce\Admin\BlockTemplates

BlockInterface::set_attribute()publicWC 1.0

Set a block attribute value without replacing the entire attributes object.

Метод класса: BlockInterface{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$BlockInterface = new BlockInterface();
$BlockInterface->set_attribute( $key, $value );
$key(строка) (обязательный)
The attribute key.
$value(разное) (обязательный)
The attribute value.

Код BlockInterface::set_attribute() WC 9.7.1

public function set_attribute( string $key, $value );