Edu 1493 Microdata

Beskrivning

The plugin is designed for Russian educational organizations to comply with Government Order №1493. It allows users to add specific itemprop attributes to standard WordPress blocks (Group, Paragraph, Columns, Table, etc.) directly within the Gutenberg editor.

Key Features:
* Adds an ”itemprop” selection field to the block settings sidebar.
* Context-aware logic: Suggests tags based on the current page slug (e.g., /common, /employees, /struct).
* Hierarchy support: Filters child tags based on the parent block’s itemprop (e.g., inside a ”teachingStaff” container).
* JSON-driven dictionary: Easy to update and extend microdata tags.
* Uses WP_HTML_Tag_Processor for safe and valid HTML attribute injection.

Плагин разработан для образовательных организаций РФ. Он позволяет добавлять специфические атрибуты itemprop (Приказ №1493) к стандартным блокам WordPress непосредственно в редакторе Gutenberg.

Основные функции:
* Добавление поля ”itemprop” в панель настроек блоков.
* Контекстные подсказки тегов в зависимости от алиаса страницы (например, /common, /managers, /employees).
* Учет вложенности: плагин предлагает дочерние теги только внутри соответствующих главных тегов-контейнеров.
* Динамическая вставка атрибутов через WP_HTML_Tag_Processor, что гарантирует валидность кода.

Skärmdumpar

  • The itemprop selection field in the block settings sidebar.
  • Filtered tag suggestions based on the page section and hierarchy.

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ’Plugins’ menu in WordPress.
  3. Open any page within the ”Svedenia” section and select a block to configure its microdata.

Vanliga frågor

How do I add new tags?

You can extend the tags.json file located in the plugin directory to add new sections or attributes.

Does it work with third-party blocks?

Currently, it supports core WordPress blocks like Group, Paragraph, Columns, Table, List, and Image.

Recensioner

4 april 2026
Программа, хоть и узкоспециализированная, но для своего круга реально полезная. Я эти коды вынужден руками забивать, дело неблагодарное. Потирал руки, увидев этот плагин, уже думал во здравие автора свечку поставить, оказалось рановато. Дело в том, что как я понимаю, плагин работает исключительно через Гутенберг, который я, как и многие, не перевариваю органически и принципиально его не использую. Для теста этого плагина я всё же временно вернул Гутенберг, но не смог найти алгоритм вставки микроразметки. На скриншоте я ничего не понял, маловато информации. Всё же не теряю надежду на продолжение работы над плагином и адаптации его к классическому редактору.
Läs 1 betyg

Bidragsgivare och utvecklare

”Edu 1493 Microdata” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

Översätt ”Edu 1493 Microdata” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

1.1.0

  • Refactored code: moved tag dictionary to an external JSON file.
  • Added hierarchical tag logic (parent/child relationship).
  • Improved tag filtering based on block types (Container vs. Leaf).
  • Translated code comments and documentation to English for repository standards.

1.0.0

  • Initial release.