Block Data Attribute
by Mahdi 5 (4 reviews)

Block Data Attribute

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

Block Data Attribute ranks #10,543 among WordPress.org plugins with 300+ active installations, a 5/5 rating from 4 reviews, and was last updated Jun 10, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Compatible with WP 7
v2.1.0 Current Version v2.1.0
Updated 1 month ago Last Update on 10 Jun, 2026
Refreshed 12 hours ago Last Refreshed on
Top 25% by installs
View on WordPress.org
Rank
#10,543
-5 this week
Active Installs
300+
-16.7%
KW Avg Position
10.7
0.6 better
Downloads
6K
+2 today
Support Resolved
0%
No change
Rating
100%
Review 5 out of 5
5 (4 reviews)

Next Milestone 400

Total Progress 62%
300+ 400+
469
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 38 more installs to reach 400+

Rank Changes

10,530 10,543 10,557 10,570 10,583 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026
10,530 10,543 10,557 10,570 10,583 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026
10,495 10,518 10,542 10,565 10,588 27-06-2026 28-06-2026 29-06-2026 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026
10,465 10,497 10,529 10,560 10,592 28-04-2026 29-04-2026 30-04-2026 01-05-2026 02-05-2026 03-05-2026 04-05-2026 05-05-2026 06-05-2026 07-05-2026 08-05-2026 09-05-2026 10-05-2026 11-05-2026 12-05-2026 13-05-2026 14-05-2026 15-05-2026 16-05-2026 17-05-2026 18-05-2026 19-05-2026 20-05-2026 21-05-2026 22-05-2026 23-05-2026 24-05-2026 25-05-2026 26-05-2026 27-05-2026 28-05-2026 29-05-2026 30-05-2026 31-05-2026 01-06-2026 02-06-2026 03-06-2026 04-06-2026 05-06-2026 06-06-2026 07-06-2026 08-06-2026 09-06-2026 10-06-2026 11-06-2026 12-06-2026 13-06-2026 14-06-2026 15-06-2026 16-06-2026 17-06-2026 18-06-2026 19-06-2026 20-06-2026 21-06-2026 22-06-2026 23-06-2026 24-06-2026 25-06-2026 26-06-2026 27-06-2026 28-06-2026 29-06-2026 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026
Current #10,543
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026
0 10 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026
0 10 27-06-2026 28-06-2026 29-06-2026 30-06-2026 01-07-2026 02-07-2026 03-07-2026 04-07-2026 05-07-2026 06-07-2026 07-07-2026 08-07-2026 09-07-2026 10-07-2026 11-07-2026 12-07-2026 13-07-2026 14-07-2026 15-07-2026 16-07-2026 17-07-2026 18-07-2026 19-07-2026 20-07-2026 21-07-2026 22-07-2026 23-07-2026 24-07-2026 25-07-2026 26-07-2026 27-07-2026
0 100 28-04-2026 01-05-2026 04-05-2026 07-05-2026 10-05-2026 13-05-2026 16-05-2026 19-05-2026 22-05-2026 25-05-2026 28-05-2026 31-05-2026 03-06-2026 06-06-2026 09-06-2026 12-06-2026 15-06-2026 18-06-2026 21-06-2026 24-06-2026 27-06-2026 30-06-2026 03-07-2026 06-07-2026 09-07-2026 12-07-2026 15-07-2026 18-07-2026 21-07-2026 24-07-2026 27-07-2026
0 100 27-07-2025 08-08-2025 20-08-2025 01-09-2025 13-09-2025 25-09-2025 07-10-2025 19-10-2025 31-10-2025 12-11-2025 24-11-2025 06-12-2025 18-12-2025 30-12-2025 11-01-2026 23-01-2026 04-02-2026 16-02-2026 28-02-2026 12-03-2026 24-03-2026 05-04-2026 17-04-2026 29-04-2026 11-05-2026 23-05-2026 04-06-2026 16-06-2026 28-06-2026 10-07-2026 22-07-2026 27-07-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
4 reviews
Overall 100%
5
4 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Tracked Keywords

Showing 3 of 3
Keyword Position Change Type Updated
data attribute 1 Tag 1 day ago
custom attribute 2 Tag 1 day ago
block settings 29 Tag 1 day ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
2.1.0
Last Updated
Jun 10, 2026
Requires WP
6.0+
Tested Up To
7
PHP Version
7.4 or higher
Author
Mahdi

Support & Rating

Rating
★ ★ ★ ★ ★ 5
Reviews
4
Support Threads
0
Resolved
0%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

Frequently Asked Questions

Common questions about Block Data Attribute

Open a page or post in the block editor. Select a supported block (e.g. a Paragraph or Button block). Open the block settings sidebar by clicking the ⚙ Settings icon in the top-right toolbar. Scroll down to the Block Data Attribute panel and expand it. Fill in the Name and Value fields. The name will automatically be prefixed with data- in the saved HTML. Click + Add attribute to add more pairs as needed. Save or publish your post.
A paragraph block with a data-highlight="true" attribute would produce: <p data-highlight="true">Your content here.</p>
By default: core/button, core/column, core/columns, core/group, core/heading, and core/paragraph.
Yes. Use the mypreview.blockDataAttributeAllowedBlocks JavaScript filter: wp.hooks.addFilter( 'mypreview.blockDataAttributeAllowedBlocks', 'my-plugin/extend-allowed-blocks', ( allowedBlocks ) => [ ...allowedBlocks, 'core/image', 'core/list' ] );
No. Attributes are stored as part of the block's serialised markup. The plugin uses the blocks.getSaveContent.extraProps filter, which is the officially supported WordPress API for this purpose.
Yes. The plugin works in any context where the block editor is used, including the Site Editor.

Sign In / Register

You need to sign in or register to use this feature.