Automattic\WooCommerce\Admin\Features\ProductBlockEditor
ProductTemplate::set_icon()
Set the template icon.
Method of the class: ProductTemplate{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ProductTemplate = new ProductTemplate(); $ProductTemplate->set_icon( $icon );
- $icon(string) (required)
- The icon name from the @wordpress/components or a url for an external image resource.
Notes
ProductTemplate::set_icon() ProductTemplate::set icon code WC 9.7.1
public function set_icon( string $icon ) { $this->icon = $icon; }