SafeSchema
WordPress Plugin to add custom schema
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/haxoranix/safeschema/archive/refs/heads/main.zipSafeSchema is a lightweight WordPress plugin for adding validated custom JSON-LD to individual posts, pages, products, and public custom post types.
It adds a schema editor below the WordPress content editor and supports three output modes:
- Disabled: Do not output the saved custom schema.
- Add: Output custom schema alongside existing schema.
- Replace supported SEO schema: Disable schema generated by a supported SEO plugin on that singular URL, then output the custom JSON-LD.
Supported SEO plugins
- Rank Math
- Yoast SEO
- All in One SEO
- SEOPress, beta compatibility
Replace mode targets supported SEO plugin schema only. A theme, WooCommerce, a block, tag manager, or another plugin may still output structured data.
Requirements
- WordPress 6.2 or later
- PHP 7.4 or later
Installation
- Download the repository as a ZIP.
- Ensure the plugin files are inside a folder named
safeschema. - Upload the folder to
/wp-content/plugins/or install the packaged release ZIP. - Activate SafeSchema.
- Edit a post, page, product, or public custom post type.
- Scroll to the SafeSchema box, paste JSON-LD, validate it, choose a mode, and save.
Validation
SafeSchema validates JSON syntax and basic JSON-LD structure in the browser and again in PHP when the post is saved. It does not guarantee Google rich result eligibility or verify that every schema claim matches the visible page content.
Version
1.0.0-beta.1
Author
Hostcode Lab
License
GPL-2.0-or-later