=== seoseo ===
Contributors: joanraez
Tags: seo, bulk edit, meta description, schema, openai, ai, search console, redirects, breadcrumbs
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.2
Stable tag: 1.18.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Bulk-manage SEO across your whole site — titles, meta, robots, canonical, images, schema, local SEO and AI-assisted content — compatible with Yoast and Rank Math.

== Description ==

seoseo is a complete SEO toolkit focused on speed and bulk editing. Edit SEO fields for hundreds of posts from one screen, generate content and ALT text with AI, control structured data, and keep your internal-link network healthy.

It works in **native mode** or alongside **Yoast SEO** / **Rank Math** through an adapter layer, so your existing meta is read and written in the right place.

**Core**

* Bulk edit SEO Title, Meta Description, Keywords, Robots (index/noindex, follow/nofollow) and Canonical per post type, with live SERP preview.
* Featured-image and full Media Library ALT/title management.
* CSV export/import for SEO, images and media (auto-detects `,` / `;` / tab delimiters).
* Direct platform connection for homepage and automatic SEO through a secure token, avoiding CSV export/import for connected workflows.
* Dashboard, Sitemap checker, Duplicate detector, Plugin Optimizer, 301 Redirects, 404 Monitor, Find & Replace, CPT Templates, Orphan Content, SEO Change Log with filters.

**AI via seoseo Platform**

* AI generation runs through seoseo Platform for connected sites; local OpenAI/Anthropic keys are optional fallbacks.
* AI Content Generator: writes posts in your site's style, targets long-tail keywords from Search Console, and builds a validated internal-link network.
* AI Meta Generator: bulk SEO titles and meta descriptions from each post's content.
* AI ALT text for images, single or bulk.
* Background queue (wp-cron) for large bulk jobs, monthly call cap, usage and cost estimate.
* Platform connection test, retry/backoff on transient errors, and support for next-gen models.

**Structured data & on-page**

* Open Graph & Twitter Cards, Schema/JSON-LD (Article, FAQ, …), Breadcrumbs + BreadcrumbList.
* Local SEO: LocalBusiness/Organization with NAP, hours, geo and social profiles.
* Archives SEO: titles/descriptions/robots for CPT, taxonomy and special archives, plus editable archive slugs.
* Google Search Console integration and Google Indexing API for eligible JobPosting / BroadcastEvent pages.

== Installation ==

1. Upload the `seoseo` folder to `/wp-content/plugins/`, or install the ZIP via Plugins → Add New → Upload.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Open **seoseo** in the admin menu.
4. Open **seoseo → Conexión**, set the platform origin to your seoseo Platform URL, and generate a connection token.
5. Connect the site from seoseo Platform to enable automatic SEO and AI generation. Local provider API keys are optional fallback settings only.

== Frequently Asked Questions ==

= Does it work with Yoast or Rank Math? =
Yes. It auto-detects them and reads/writes their meta. You can also force native mode or dual mode in the settings.

= Do I need an API key? =
Customers do not need their own OpenAI or Anthropic API key when the site is connected to seoseo Platform. Local provider keys are optional fallbacks for development or self-hosted use.

= Is the Google Indexing API available for every page? =
No. Google officially supports it only for JobPosting pages and BroadcastEvent pages embedded in VideoObject. seoseo enforces that restriction, and indexing is never guaranteed.

= My CSV import skipped every row. =
Older versions only accepted comma-separated files. Since 1.7.1 the delimiter (`,`, `;`, tab) is auto-detected, so Excel exports work too. Keep the `ID` column.

== Changelog ==

See CHANGELOG.md for the full history. Highlights:

= 1.18.0 =
* Added Platform premium controls: license status, jobs, action history, rollback, diagnostics, Search Console status and AI cost limits.

= 1.17.1 =
* Added CPT validation in the automatic SEO panel, showing which post types are ready for Platform-based SEO generation.

= 1.17.0 =
* Automatic SEO generation is now orchestrated by seoseo Platform; the WordPress plugin acts as secure connector, manual editor and approved-change applicator.

= 1.16.0 =
* AI generation now runs through seoseo Platform for connected sites, removing the need for customer-side provider API keys.
* Added Platform AI diagnostics, reconnect warnings, paginated URL Inventory, and a review/apply flow for AI meta suggestions.

= 1.15.0 =
* Direct seoseo Platform connection via secure REST API endpoints for reading and saving homepage SEO without CSV import/export.

= 1.14.0 =
* Production hardening for PHP 8.2+, Rank Math AI flows, Anthropic models, safe remote URLs and official Google Indexing API usage.

= 1.13.0 =
* Content Autopilot: scheduled draft generation from Search Console opportunities, with validated external links.

= 1.12.0 =
* Site SEO audit in the Optimize page: real analysis with a health score and prioritized fixes.

= 1.11.0 =
* Estimated cost in the AI usage panel; WordPress.org README and translation template.

= 1.10.0 =
* Background queue (wp-cron) for bulk ALT/meta generation.

= 1.9.0 =
* AI request retries, friendlier errors, and next-gen model support.

= 1.8.0 =
* AI connection test and centralized AI model settings.

= 1.7.1 =
* Fixed CSV import for `;`-delimited (Excel) files; larger clickable media thumbnails.

= 1.7.0 =
* AI usage guardrails (monthly cap) and opt-in uninstall cleanup.

= 1.6.0 =
* Archives SEO for CPT/taxonomy/special archives + editable archive slugs.

= 1.5.0 =
* Breadcrumbs + BreadcrumbList schema.

= 1.4.0 =
* Google Indexing API integration.

= 1.3.0 =
* Internal link suggestions in the editor.

= 1.2.0 =
* AI Meta Generator (bulk titles & descriptions).

= 1.1.0 =
* Local SEO module.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.7.1 =
Fixes CSV image import for Excel files that use semicolons.
