Block Data Attribute
by Mahdi · WordPress.org page
Block Data Attribute has 300+ active installs on WordPress.org and 6,935 downloads all time. We have tracked it since September 4, 2026; download trends appear after 30 days of data. The last update was on June 10, 2026, tested up to WordPress 7.0.4.
Block Data Attribute at a glance
Is Block Data Attribute well maintained?
Features
The feature list from the plugin's own readme on WordPress.org, trimmed to the essentials.
- 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
Block Data Attribute reviews and ratings
4 reviews on WordPress.org, with the most recent ones as their authors posted them.
4 reviews
- 5★
-
4
- 4★
-
0
- 3★
-
0
- 2★
-
0
- 1★
-
0
-
Would love this to cover images
Great plugin, would be even greater if it did images too for animation on scroll (AOS) reasons.
johnlewisdesign -
Time saver
Saved me from having to build it myself. Surprised this still isn't built into native block functionality. Thank you!
tv360 -
Good but I just need one more thing
I have to add a data attribute to one my of blocks and I've found this plugin developed by you. Unfortunately, the plugin doesn't allow me to type slash (/) or backslash (\) in the Value field. I know this is blocked with Javascript but I wasn't able to figure out which line of the code is causing this. Thank you!
Amanda -
Does what I needed it to do
Saved me from a lot of setup and code involved in block registration by just adding the simple field I needed.
kevingarubba
Details
Add custom HTML data attributes to core WordPress blocks directly from the block editor sidebar — no coding required.
The full description, screenshots and every review live on the WordPress.org page.
Tags
- block settings
- block-editor
- custom attribute
- data attribute
- gutenberg
More from Mahdi
-
Gallery Thumbnails Block 10+ installs -
SEO Ready fewer than 10 installs
- Version
- 2.1.0
- Last updated
- Jun 10, 2026
- First published
- Feb 10, 2020
- Requires WordPress
- 6.0
- Tested up to
- 7.0.4
- Requires PHP
- 7.4
- Pricing
- Free on WordPress.org
Block Data Attribute FAQ
What does Block Data Attribute do?
According to its WordPress.org readme, Block Data Attribute offers 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 and Fully extensible: register additional allowed block types via a JavaScript filter.
How many active installs does Block Data Attribute have?
WordPress.org reports 300+ active installs for Block Data Attribute as of September 7, 2026.
Is Block Data Attribute still maintained?
Yes. The last release was on June 10, 2026 and it is tested up to WordPress 7.0.4.
Is Block Data Attribute free?
Block Data Attribute is free to install from WordPress.org. Many plugins also sell a paid version or add-ons.