Skip to content
Free: label AI images under the EU AI Act in your browser.Open the tool
EN
AI-LabelAI images, EU AI Act
Integrations · WooCommerceUpdated 11 October 20269 primary sources

Labelling AI images in WooCommerce

The free widget adds the AI label required by Article 50 of the EU AI Act to marked product images in WooCommerce.

In WooCommerce you add the widget like any script in WordPress, with a plugin such as WPCode or in a child theme with wp_enqueue_script().

Mark product images with the alt text in the media library, for example “Vase on a wooden table (AI-generated)”. The file name does not work, because WordPress turns --ai into a single hyphen on upload.

Add the script tag

<script src="https://www.ai-label.app/widget.js" defer></script>
add_action( 'wp_enqueue_scripts', function () {
    wp_enqueue_script( 'ai-label', 'https://www.ai-label.app/widget.js', array(), null, array( 'strategy' => 'defer' ) );
} );

Then open a product page and a category page with a marked image. The label appears in the top right corner of the image, on product cards as well.

Mark images

Which images need a label is your decision, for example with the labelling check. The widget only labels marked images, in three ways that can be combined:

In WooCommerce, mark images through the alt text in the media library, found under Media in the image details. You set the product image and gallery in the right-hand column of the product editor; both point to files in the media library.

The file name does not work in WordPress. On upload, sanitize_file_name() collapses several hyphens into one. vase--ai.jpg becomes vase-ai.jpg, and the widget no longer sees the marker. Use the data-ai-label attribute only in child theme templates.

Pitfalls

Limits of the widget

Native app

A dedicated WooCommerce app is planned. There is no date yet.

Get notified when the WooCommerce app launches

We will email you once when the app launches.

Frequently asked questions

Do I need a plugin?

No. In a child theme, wp_enqueue_script() in functions.php is enough. WPCode is the no-code route.

Does the marking also apply to product cards?

Yes, if your theme shows the same file with the same alt text there. Check category pages and search.

Sources

Para. refers to the paragraph number in the European Commission's guidelines on Article 50, C(2026) 5054.

  1. WooCommerce: adding product images and galleriesWooCommerce · Platform · 11 Oct 2026
  2. WPCode in the WordPress plugin directoryWordPress.org · Platform · 8 Oct 2026
  3. WordPress Developer Resources: wp_enqueue_script()WordPress.org · Platform · 11 Oct 2026
  4. WordPress Theme Handbook: child themesWordPress.org · Platform · 26 Jan 2024
  5. WordPress documentation: Media Library screenWordPress.org · Platform · 6 Jun 2024
  6. WordPress source code: sanitize_file_name() (version 7.1.3)WordPress · Platform · 11 Oct 2026
  7. WP Rocket: Delay JavaScript executionWP Media · Platform · 11 Mar 2026
  8. Code of Practice on Transparency of AI-Generated Content (final version)Europäische Kommission · Code of practice · 10 Jun 2026
  9. Regulation (EU) 2024/1689 (AI Act)EUR-Lex · Law · 12 Jul 2024

Label your first AI image

Free in your browser, with the EU icon and text in 24 languages. On Shopify, the app labels your whole store.