Title: Protect schema.org markup in HTML editor
Author: Ecwid by Lightspeed Ecommerce Shopping Cart
Published: <strong>June 8, 2016</strong>
Last modified: December 1, 2025

---

Search plugins

![](https://ps.w.org/protect-schemaorg-markup-in-html-editor/assets/icon.svg?rev
=3101102)

# Protect schema.org markup in HTML editor

 By [Ecwid by Lightspeed Ecommerce Shopping Cart](https://profiles.wordpress.org/ecwid/)

[Download](https://downloads.wordpress.org/plugin/protect-schemaorg-markup-in-html-editor.0.6.zip)

 * [Details](https://wordpress.org/plugins/protect-schemaorg-markup-in-html-editor/#description)
 * [Reviews](https://wordpress.org/plugins/protect-schemaorg-markup-in-html-editor/#reviews)
 *  [Installation](https://wordpress.org/plugins/protect-schemaorg-markup-in-html-editor/#installation)
 * [Development](https://wordpress.org/plugins/protect-schemaorg-markup-in-html-editor/#developers)

 [Support](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/)

## Description

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

## Installation

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.

## Reviews

![](https://secure.gravatar.com/avatar/41501a831190ffdb6517c0e4987b75643aec4717d28e9dbfb643a8fec7933350?
s=60&d=retro&r=g)

### 󠀁[heading tags](https://wordpress.org/support/topic/heading-tags-3/)󠁿

 [alikargozar](https://profiles.wordpress.org/alikargozar/) February 15, 2023

Please protect the attributes that are in the heading tags.

![](https://secure.gravatar.com/avatar/ec4487736be71cce2a1c2236f29de4e54cc6ad6eff08d5fd7784664f18dca1e0?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-33583/)󠁿

 [juelu](https://profiles.wordpress.org/juelu/) March 2, 2022 1 reply

Works like a charm for protecting our markup!

![](https://secure.gravatar.com/avatar/68130d30cb8a93a16226bdaeb588d31d92592431cdd0161f4022c4a2e73523ab?
s=60&d=retro&r=g)

### 󠀁[Simple yet Powerful](https://wordpress.org/support/topic/simple-yet-powerful-14/)󠁿

 [axxixx](https://profiles.wordpress.org/axxixx/) October 6, 2016 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.

![](https://secure.gravatar.com/avatar/b810be0c02c99a4ad341f93d5fda8e9d5e36582044d8abe67bcbaa688d7148b4?
s=60&d=retro&r=g)

### 󠀁[Fixes Problems with Visual Composer Plugin](https://wordpress.org/support/topic/fixes-problems-with-visual-composer-plugin/)󠁿

 [jsites](https://profiles.wordpress.org/jsites/) September 20, 2016 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.

![](https://secure.gravatar.com/avatar/02a1a5e9a13401f6ab7a06c291c8a53fe08c37f64b1a983190430502936fd738?
s=60&d=retro&r=g)

### 󠀁[Works EXACTLY as expected!](https://wordpress.org/support/topic/works-exactly-as-expected-15/)󠁿

 [Suz](https://profiles.wordpress.org/bdlsuz/) September 8, 2016 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!

 [ Read all 4 reviews ](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/reviews/)

## Contributors & Developers

“Protect schema.org markup in HTML editor” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Ecwid by Lightspeed Ecommerce Shopping Cart ](https://profiles.wordpress.org/ecwid/)

[Translate “Protect schema.org markup in HTML editor” into your language.](https://translate.wordpress.org/projects/wp-plugins/protect-schemaorg-markup-in-html-editor)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/protect-schemaorg-markup-in-html-editor/),
check out the [SVN repository](https://plugins.svn.wordpress.org/protect-schemaorg-markup-in-html-editor/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/protect-schemaorg-markup-in-html-editor/)
by [RSS](https://plugins.trac.wordpress.org/log/protect-schemaorg-markup-in-html-editor/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

## Meta

 *  Version **0.6**
 *  Last updated **5 months ago**
 *  Active installations **800+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **6.9.4**
 * Tags
 * [html-editor](https://wordpress.org/plugins/tags/html-editor/)[microdata](https://wordpress.org/plugins/tags/microdata/)
   [rich snippets](https://wordpress.org/plugins/tags/rich-snippets/)[schema.org](https://wordpress.org/plugins/tags/schema-org/)
   [tinyMCE](https://wordpress.org/plugins/tags/tinymce/)
 *  [Advanced View](https://wordpress.org/plugins/protect-schemaorg-markup-in-html-editor/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  5 5-star reviews     ](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/reviews/)

## Contributors

 *   [ Ecwid by Lightspeed Ecommerce Shopping Cart ](https://profiles.wordpress.org/ecwid/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/protect-schemaorg-markup-in-html-editor/)