Automattic\WooCommerce\Admin\Features\ProductBlockEditor
ProductTemplate::set_icon()
Set the template icon.
Метод класса: ProductTemplate{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ProductTemplate = new ProductTemplate(); $ProductTemplate->set_icon( $icon );
- $icon(строка) (обязательный)
- The icon name from the @wordpress/components or a url for an external image resource.
Заметки
Код ProductTemplate::set_icon() ProductTemplate::set icon WC 9.7.1
public function set_icon( string $icon ) { $this->icon = $icon; }