Linux 软件免费装
Banner图

Attribute Icon for WooCommerce

开发者 mosharafmanu
更新时间 2026年6月13日 01:30
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPL-2.0+
版权网址: 版权信息

标签

woocommerce icons attributes product attributes attribute icon

下载

1.0.0

详情介绍:

Attribute Icon for WooCommerce extends the WooCommerce attribute system with icon support. Each attribute (Color, Size, Material, etc.) gets a native WordPress media uploader field. Upload an icon — it appears before the attribute label on the single product page. Feature summary:

安装:

  1. Upload the plugin folder to /wp-content/plugins/ or install via Plugins > Add New.
  2. Activate the plugin. WooCommerce must be active.
  3. Edit any attribute (Products > Attributes > Edit). An icon upload field appears.

屏幕截图:

  • Attributes list table with the Icon column showing the uploaded icon alongside each attribute.
  • Edit Attribute screen with an icon set — Change Icon and Remove buttons.
  • Frontend product page — attribute icon displayed beside the label in the Additional Information tab.

常见问题:

Does this work with custom themes?

Yes. If your theme uses wc_display_product_attributes() or woocommerce_attribute_label, icons appear automatically. For custom templates, use the static helpers: use AttrIconWoo\AttributeFrontend; echo AttributeFrontend::get_image_html( $attribute_id, 'thumbnail', 'Color' );

Where is the icon stored?

The image attachment ID is stored in wp_options under the key attricfo_attribute_image_{id}. The actual file uses the WordPress media library.

What happens when I deactivate?

Icons stop displaying on the frontend. Options are preserved — reactivate and icons return. No data loss.

What happens when I delete the plugin?

All attricfo_attribute_image_* options are removed. Deleting via the Plugins screen runs the uninstall routine.

更新日志:

1.0.0