Skip to content
Free: label 30 AI images a month, with a proof record.Create account
EN
AI-Label
Integrations · WordPressUpdated 11 October 20269 primary sources

Labelling AI images in WordPress

The free widget adds the AI label required by Article 50 of the EU AI Act to marked images in WordPress, for example on blogs, magazines and company sites.

In WordPress you add the widget once for the whole site: with the WPCode plugin or in a child theme with wp_enqueue_script(). Mark images through the alt text in the media library or the image block.

A file name with --ai does not work, because WordPress collapses double hyphens on upload. For shops there is a separate WooCommerce guide.

Add the script tag

<script src="https://www.ai-label.app/widget.js" defer></script>

The script tag belongs once in the head of every page, not in single posts. The simplest way is the WPCode plugin: “Code Snippets” menu, header field (“Scripts in Header”), save. With your own theme, load the script in a child theme with the defer strategy:

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

A script tag in a Custom HTML block only works on that one page. Only roles with the unfiltered_html capability may save it, which means administrators and editors on a single site and only super admins on a network.

Schematic recreation The script tag goes into the highlighted field. Layout and labels may differ in your version.

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 WordPress, mark images through the alt text. You find it in an image's details in the media library and in the image block settings in the block editor. Featured images take their alt text from the media library.

The file name does not work. On upload, sanitize_file_name() collapses several hyphens into one. vase--ai.jpg becomes vase-ai.jpg, and the marker is gone. The data-ai-label attribute is only worth it in theme templates.

Mark an image Highlighted is what the widget recognises.
In your store Only marked images carry the label; an image without a marker stays as it is. A click on the label opens the explanation.

Pitfalls

Limits of the widget

Native app

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

Get notified when the WordPress app launches

We will email you once when the app launches.

Frequently asked questions

Can I paste the script tag into a post?

Then it only works on that page, and only roles with unfiltered_html may save it. For the whole site, use WPCode or a child theme.

Why does an older post have no label?

The image block stored the alt text when it was inserted, and a later change in the media library does not reach it. Add the suffix in the block.

Sources

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

  1. WPCode in the WordPress plugin directoryWordPress.org · Platform · 8 Oct 2026
  2. WordPress Developer Resources: wp_enqueue_script()WordPress.org · Platform · 11 Oct 2026
  3. WordPress Theme Handbook: child themesWordPress.org · Platform · 26 Jan 2024
  4. WordPress documentation: Media Library screenWordPress.org · Platform · 6 Jun 2024
  5. WordPress source code: sanitize_file_name() (version 7.1.3)WordPress · Platform · 11 Oct 2026
  6. WordPress documentation: Roles and capabilitiesWordPress.org · Platform · 2 Sept 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

3 images right away, 30 a month with a free account, with a record for every image. On Shopify, the app labels your whole store.