Automattic\WooCommerce\Admin\BlockTemplates
BlockInterface::set_attribute()
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() BlockInterface::set attribute WC 9.7.1
public function set_attribute( string $key, $value );