开发者 |
mahdiyazdani
mypreview gookaani |
---|---|
更新时间 | 2022年11月8日 04:07 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.1 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
data-*
attributes will allow you to store extra information on different Gutenberg blocks, without other hacks such as non-standard attributes, appending properties on DOM, or modifying a block as HTML which will throw a block validation error when opening the post edit page once again.
/button
in a new paragraph block, then press enter.⚙
cog icon next to the publish button will toggle the visibility of this sidebar.Block Data Attribute
section to add custom attributes as needed.Currently, custom data attributes can be saved within the following blocks:
core/button
core/column
core/columns
core/heading
core/group
core/paragraph
mypreview.blockDataAttributeAllowedBlocks
filter provided by the plugin.
The easiest way to receive support is to “Create a new topic” by visiting Community Forums page here. Make sure to check the “Notify me of follow-up replies via email” checkbox to receive notifications, as soon as a reply posted to your question or inquiry. Please note that this is an opensource 100% volunteer project, and it’s not unusual to get reply days or even weeks later.
The plugin is fully translation-ready and localized using the GNU framework, and translators are welcome to contribute to the plugin. Here’s the the WordPress translation website →
We welcome contributions in any form, and you can help reporting, testing, and detailing bugs. Here’s the GitHub development repository →
If you or your company use any of my projects or like what I’m doing, please consider making a donation so I can continue maintaining and evolving all my projects and new ones. I’m in this for the long run. --AND/OR-- Please share your experience by leaving this plugin 5 shining stars if you like it, thanks!
data
keyword from the attribute name.value
attribute pair.