=== AnilSuwal PageSchema Studio ===
Contributors: anilsuwal16
Donate link: https://buymeacoffee.com/anilsuwal
Tags: schema, json-ld, structured data, seo, rich results
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Build and inject custom JSON-LD structured data on any Post or Page — no coding required.

== Description ==

AnilSuwal PageSchema Studio adds a simple JSON-LD builder directly to your Post and Page editor, plus a sitewide Organization/Website schema setting — so you can give search engines clean, accurate structured data without editing theme files or writing JSON by hand.

* Per-post schema type selector: Article, WebPage, Organization, Person, Website, BreadcrumbList
* Auto-filled fields from your existing post data (title, excerpt, featured image, author, dates)
* Sitewide Organization + Website schema (Settings → PageSchema Studio)
* Manual JSON-LD override box for advanced users
* FAQ schema block for adding Q&A structured data
* One-click JSON-LD preview + link to Google's Rich Results Test
* Detects Yoast SEO / RankMath and lets you reuse their title & description
* Warns if another plugin is also outputting structured data, to help you avoid duplicates
* Schema health dashboard with validation status across your site

== Installation ==

1. Upload the `anilsuwal-pageschema-studio` folder to `/wp-content/plugins/`.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Edit any Post or Page and look for the "PageSchema Studio — JSON-LD" box.
4. Configure sitewide Organization/Website schema under **PageSchema Studio → Settings** in the WordPress admin sidebar.

== Frequently Asked Questions ==

= Will this conflict with Yoast SEO or RankMath? =
No. PageSchema Studio only reads their meta as a convenience (for autofill) and never modifies it. If both plugins output JSON-LD you may see duplicate schema — an admin notice will warn you if this is detected.

= Can I write my own JSON-LD? =
Yes — use the "Manual JSON-LD" field in the metabox. It overrides the auto-built schema for that post while FAQ items (if any) are still added alongside it.

== Changelog ==

= 1.1.0 =
* Renamed all plugin prefixes from `pss` to `pageschema` for WordPress.org compliance.
* Removed FAQ output cap and freemium marketing copy.
* Added proper validation and recursive sanitization for manual JSON-LD input.
* Added database migration for existing installs using legacy `pss_*` keys.

= 1.0.0 =
* Initial release.
