Automattic\WooCommerce\Admin\Features\ProductBlockEditor

ProductTemplate::set_iconpublicWC 1.0

Set the template icon.

Method of the class: ProductTemplate{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ProductTemplate = new ProductTemplate();
$ProductTemplate->set_icon( $icon );
$icon(string) (required)
The icon name or an external image URL.

ProductTemplate::set_icon() code WC 11.0.1

public function set_icon( string $icon ) {
	unset( $icon );

	self::maybe_log_removal_warning();
}