
Block Data Attribute
This plugin designed with extensibility in mind for data that should be associated with a particular block type but need not have any defined meaning.


Overview
Compatibility
Installation instructions
Customer support & learning resources
Changelog
Main benefits
Extensible data storage
Avoids non-standard attributes
Prevents block validation errors
Compatible with Gutenberg blocks
About this plugin
Author: Mahdi Yazdani
Categories: Utilities
Version: 2.0.2
Last updated: 07-11-2022
WordPress version: 5.5
Tested up to: 6.1.7
PHP version required: 7.4
Languages:
Tags:
Overview
The plugin is specifically designed to enhance Gutenberg blocks in WordPress by allowing users to store additional data seamlessly. It introduces the use of data-* attributes, enabling the storage of extra information relevant to specific block types without predefined meanings. This approach avoids the need for non-standard attributes, DOM property modifications, or HTML block alterations that could lead to validation errors when revisiting the post edit page. The plugin is built with extensibility in mind, providing a flexible and efficient solution for associating supplementary data with Gutenberg blocks.
Extensibility
- Designed with extensibility in mind
- Allows for data association with specific block types
Data Storage
- Utilizes data-* attributes for storing extra information
- Avoids the need for non-standard attributes or DOM property modifications
Compatibility
- Prevents block validation errors
- Ensures smooth reopening of the post edit page
Ease of Use
- Eliminates the need for hacks
- Simplifies the process of adding extra information to Gutenberg blocks