Automattic\WooCommerce\Admin\Features\ProductBlockEditor
ProductTemplate::set_icon
Set the template icon.
Метод класса: ProductTemplate{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$ProductTemplate = new ProductTemplate(); $ProductTemplate->set_icon( $icon );
- $icon(строка) (обязательный)
- The icon name or an external image URL.
Код ProductTemplate::set_icon() ProductTemplate::set icon WC 11.3.0
public function set_icon( string $icon ) {
unset( $icon );
self::maybe_log_removal_warning();
}