Automattic\WooCommerce\Admin\BlockTemplates
BlockInterface::set_attribute
Set a block attribute value without replacing the entire attributes object.
Method of the class: BlockInterface{}
No Hooks.
Returns
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() BlockInterface::set attribute code WC 10.6.2
public function set_attribute( string $key, $value );