🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Block Data Attribute icon
gepflegt Getestet bis 7.0.9 #1 in block settings

Block Data Attribute

Add custom HTML data attributes to core WordPress blocks directly from the block editor sidebar — no coding required.

Aktive Installationen300+100+ Stufe
Downloads · 30d226▲ +21.5% vs prev. 30d
Wertung5/54 Bewertungen
Gesundheits-Score61/100Messe
Downloads aller Zeiten7.5KSeit Februar 2020
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 6.0PHP 7.4+
Downloads · 7d58• 0% Woche über Woche
Unser Urteil

Mit Vorsicht verwenden

Block Data Attribute works, but test it on a staging site before relying on it in 2026. It runs on 300+ sites, is rated 5/5 and was last updated 6 months ago, and scores 61/100 on our health check.

  • Kleine Benutzerbasis (300+ aktive Installationen)
  • Bisher sehr wenige Bewertungen

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

4812Sep 2Oct 16Nov 30
Gestern12
Täglicher Durchschnitt (1 Jahr)5
Spitzentag84Jun 11, 2026
Letzte 12 Monate1.8K

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Block Data Attribute stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
block settings #45 10,000 Best block settings plugins →
block-editor >100 10,000 Best block-editor plugins →
custom attribute #8 7,111 Best custom attribute plugins →
data attribute #1 7,363 Best data attribute plugins →
Gutenberg >100 8,521 Beste Gutenberg-Plugins →

Versionsübernahme

Anteil aktiver Sites pro Release.

  • 2.164.9%
  • 2.028.0%
  • 1.07.2%

Bewertungsaufschlüsselung

★★★★★★★★★★ 5 from 4 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Block Data Attribute

From the official readme · v2.1.0

Beschreibung

Block Data Attribute lets you attach custom data-* attributes to core WordPress blocks straight from the block settings sidebar. No theme edits, no custom code, no block validation errors.

data-* attributes are a standard HTML mechanism for storing extra information on elements. They are widely used for JavaScript interactions, CSS targeting, analytics tagging, accessibility enhancements, and third-party integrations. This plugin brings that capability into the block editor in a clean, structured way.

Hauptmerkmale

  • Add any number of data-* attributes to supported blocks.
  • Name and value fields with input sanitisation built in.
  • Drag-and-drop reordering of attributes within the sidebar panel.
  • Attributes are saved directly in block markup — no post meta, no database overhead.
  • Fully extensible: register additional allowed block types via a JavaScript filter.
  • No build step required — ships as a single plain JavaScript file.
  • Translation-ready.

Supported Blocks

Out of the box the following core blocks support custom data attributes:

  • core/button
  • core/column
  • core/columns
  • core/group
  • core/heading
  • core/paragraph

Installation

Bedarf

  • WordPress 6.0 or later
  • PHP 7.4 or later
  • MySQL 5.6 / MariaDB 10.0 or later

Automatic installation (recommended)

  1. Log in to your WordPress dashboard and go to Plugins → Add New.
  2. Search for Block Data Attribute.
  3. Klicken Sie auf Jetzt installieren und dann Aktivieren.

Manuelle Installation

  1. Download the plugin zip from the WordPress plugin directory.
  2. Go to Plugins → Add New → Upload Plugin.
  3. Upload the zip file and click Install Now, then Activate.

Alternatively you can upload the unzipped plugin folder to /wp-content/plugins/ via FTP and activate it from the Plugins screen.

Aktualisierung

Automatic updates work via the WordPress dashboard. We still recommend taking a backup before any update.

Änderungsprotokoll

UI and drag-and-drop improvements; no data migration required when upgrading from 2.x.

2.1.0

  • Rewritten as a single-file plain JavaScript build — no bundler or Composer required.
  • Improved sidebar UI: consistent field widths, full-width Add attribute button, reserved space for the remove button so layout does not shift.
  • Fixed drag-and-drop reordering: only the handle icon triggers dragging, leaving text inputs and the remove button fully interactive.
  • Updated drag handle to a standard 6-dot grid icon.
  • Bumped minimum WordPress requirement to 7.0.

2.0.2

  • Compatibility with WordPress 6.1.

2.0.1

  • Added missing data- prefix to the attribute name output.

2.0.0

  • Support for defining an unlimited number of attributes per block.
  • Compatibility with WordPress 6.0.
  • Updated dependencies.

1.0.5

  • Fixed incorrect escaping applied to the data attribute value.

1.0.4

  • Updated dependencies.
  • Compatibility with WordPress 5.5.

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

Block Data Attribute panel in the block editor sidebar showing name/value pairs with drag-to-reorder handles and the Add attribute button.
Block Data Attribute panel in the block editor sidebar showing name/value pairs with…

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Block Data Attribute alternatives

All block settings plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
2 Multigovernance — Multi-user site, role-based permissions for blocks and settings Multigovernance Govern Gutenberg block visibility and settings by user role for a cleaner editor and fewer… by MULTIDOTS Inc <10 ★★★★★★★★★★ Keine Bewertungen Vor 4 Monaten 49

Fragen und Antworten

Block Data Attribute: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is Block Data Attribute free?

Yes. Block Data Attribute is free to download and use from the official WordPress.org plugin directory.

Is Block Data Attribute safe to use in 2026?

Block Data Attribute works, but test it on a staging site before relying on it in 2026. It runs on 300+ sites, is rated 5/5 and was last updated 6 months ago, and scores 61/100 on our health check.

How many websites use Block Data Attribute?

Block Data Attribute is active on 300+ WordPress websites and has been downloaded 7,460 times since it launched in February 2020. It was downloaded 226 times in the last 30 days.

Does Block Data Attribute work with WordPress 7.1?

Block Data Attribute is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Block Data Attribute need?

Block Data Attribute requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Block Data Attribute last updated?

The latest version, 2.1.0, was released on June 10, 2026 (6 months ago).

Who makes Block Data Attribute?

Block Data Attribute is developed and maintained by Mahdi Yazdani.

What are the best alternatives to Block Data Attribute?

The most popular alternatives to Block Data Attribute are Multigovernance (<10 installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen