Protect schema.org markup in HTML editor

چۈشەندۈرۈش

WordPress HTML editor (tinyMCE) treats schema.org attributes like itemscope/itemtype/itemprop as invalid HTML attributes and strips them when you save the post or page content. This plugin alters this behavior and prevent the WordPress HTML editor from removing the schema.org/microdata markup.

Credits

@azaozz suggested the solution. See the issue discussion here: https://core.trac.wordpress.org/ticket/27931

ئورنىتىش

Just install the plugin as usually and activate it. Once activated, it will keep your markup from being removed by the HTML editor. No setup required.

باھالاشلار

2023-يىلى 15-فېۋرال
Please protect the attributes that are in the heading tags.
2022-يىلى 2-مارت 1 reply
Works like a charm for protecting our markup!
2016-يىلى 6-ئۆكتەبىر 1 reply
This is a really good plugin. I had an issue with it before adding a review to see what the outcome would be and WOW the support was fantastic. Highly recommended. This will now be a plugin I use for all my sites.
2016-يىلى 20-سېنتەبىر 1 reply
Client's website is using a strange page builder plugin called Visual Composer. This plugin seems to strip out all of my Schema.org markup attributes. I installed this plugin, and it resolved the issues, and now my attributes are staying on the page.
2016-يىلى 8-سېنتەبىر 1 reply
Yep, it works EXACTLY as they say it will! Just install and go add your schema into your post or page! Yay! This solved us a BUNCH of headaches! Thanks a million for this great tool!
4 باھالاشنىڭ ھەممىنى ئوقۇش

تۆھپىكار ۋە ئىجادكار

«Protect schema.org markup in HTML editor» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا تۆھپە قوشقان.

تۆھپىكار

«Protect schema.org markup in HTML editor» نى تىلىڭىزغا تەرجىمە قىلىڭ

ئىجادىيەتكە قىزىقامسىز؟

كودقا كۆز يۈگۈرتۈپ، SVN خەزىنە تەكشۈرۈپ ياكى RSSئارقىلىق ئىجادىيەت خاتىرىسىگە مۇشتەرى بولغىلى بولىدۇ.

ئۆزگىرىش خاتىرىسى

0.6

  • The new feature is the compatibility schema.org attributes for the wp_kses_post function. This is useful when page content from additional fields with HTML editor is filtered using wp_kses_post function by third-party plugins.

0.5

  • Added support for the «content» attribute for the «time» tag
  • Fixed error «Notice: Undefined index: extended_valid_elements»

0.4

Fixed src attribute being removed from img tag.

0.3

Fixed schema.org attributes being removed from article and p tags.

0.2

Fixed schema.org attributes being removed from img tags.

0.1

Initial version