Automattic\WooCommerce\Admin\BlockTemplates

BlockInterface::set_attribute()publicWC 1.0

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

Method of the class: BlockInterface{}

No Hooks.

Return

null. Nothing (null).

Usage

$BlockInterface = new BlockInterface();
$BlockInterface->set_attribute( $key, $value );
$key(string) (required)
The attribute key.
$value(mixed) (required)
The attribute value.

BlockInterface::set_attribute() code WC 9.7.1

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