=== Sitetrail PR, SEO & AI Search Studio ===
Contributors: sitetrail
Tags: seo, public relations, aeo, press release, content calendar
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Plan off-site PR, SEO and AI search campaigns. Find news sites and niche blogs for media coverage and high-authority backlink opportunities.

== Description ==

Sitetrail PR, SEO & AI Search Studio is a WordPress workspace by Sitetrail for improving your search visibility, media presence and discoverability in AI answers. Plan off-site content, organize facts and sources, and use practical PR, SEO and AEO lessons and templates.

The calendar, evidence library, placement tracker, lessons, press release templates and site update emails work on your site. Browse a bundled preview of NewsPass publications without an account. Connect for current publication availability, plan offers, article submissions and the one-time free media coverage offer for eligible accounts. Editorial review applies. You can also check whether your site qualifies as a NewsPass Publishing Partner. Plan payments take place on Sitetrail. Checkout returns you to your saved Studio draft.

Use As featured in to select and reorder up to 12 published articles. The first three articles use images from your Media Library or the built-in Media Showcase. Later articles appear in a compact list with a thumbnail if you select one. Turn off images for a text-only list. Insert the shortcode with the WordPress Shortcode block or Elementor’s Shortcode widget. The embed uses your site's own records and image files.

Save a publication from the chooser as a target in your off-site content calendar. Coverage by page groups published articles by the pages they link to on your site. Studio stores draft links locally when you submit through Studio. You can edit the links or add them manually to other coverage. The report reuses existing NewsPass status updates and makes no additional external requests.

On an HTTPS site, open AI article ideas from the off-site content calendar, connect your Sitetrail account and verify your email. Run the free connection test, then enter a brief to generate ideas when the service is available. Verified free accounts get up to 25 ideas for life. Paid Sitetrail plans include up to 100 ideas per billing period. You can keep adding and editing calendar ideas yourself after using your allowance.

== Installation ==

1. Upload the ZIP from Plugins → Add New Plugin → Upload Plugin.
2. Activate the plugin and open Sitetrail Studio in the WordPress admin menu.
3. Weekly site updates default to on for the WordPress user who activates the plugin for the first time on a site. They can turn them off in Sitetrail Studio → Settings. Your site’s existing SMTP configuration handles delivery. Use Send test email to verify it.

== Support ==

Contact [Sitetrail Support](https://www.sitetrail.com/support/) for help with Studio or your NewsPass account.

== External services ==

Local tools: Calendar entries, evidence, placements, Coverage by page, templates, progress, the bundled publication preview and As featured in use your WordPress records. Opening these local tools does not send them to Sitetrail. Weekly emails use your site's configured WordPress mail transport. They go to the activating user's own address by default and to other users only if they enable them. Network-wide activation does not enroll users automatically.

Sitetrail account and NewsPass: Connect with Sitetrail opens https://www.sitetrail.com/my-account/ for sign-in and consent. Studio sends a return URL and proof-key challenge, exchanges the temporary code over HTTPS, and stores the resulting account credential in the current WordPress user's site settings. There is also a manual connection-key fallback. Connected requests to https://www.sitetrail.com/wp-json/stgp-studio/v1/ send this credential and the information needed for the action: account and plan checks, credits, publication selection, saved submission references, article submission and editorial feedback, notifications, checkout, and Publishing Partner state. Opening Submissions, using Refresh, or opening a stale notification feed requests account updates. Payments open Sitetrail checkout and return to the same saved Studio draft and publication. Disconnect in Settings revokes this Studio connection; it does not cancel a subscription or replace the separate Publishing Partner Leave control. Terms: https://www.sitetrail.com/terms-of-service/ (also contains Privacy and Security).

Article service: https://submissions.sitetrail.com is Sitetrail's article service on Cloudflare. Import Google Doc sends the document URL; the service retrieves its content from Google. Image upload sends the selected image bytes. Check & Submit sends the article, selected publication, source details and stable submission reference for validation, editorial processing and publishing. Retry uses that reference to recover the same job. Google terms: https://policies.google.com/terms and privacy: https://policies.google.com/privacy. Cloudflare service terms: https://www.cloudflare.com/terms/ and privacy: https://www.cloudflare.com/privacypolicy/.

AI ideas: https://newspass-ideas.sitetrail.com is Sitetrail's Cloudflare-hosted Ideas service. Opening the Ideas screen makes no request to that service. Test connection obtains a short-lived account token and sends a sample request without calling DeepSeek or using the ideas allowance. Generate Content Ideas sends the business brief, audience, selected evidence and story fields reviewed in the form. Sitetrail forwards the brief directly to https://api.deepseek.com for generation; it does not use Workers AI or AI Gateway. Generated results can be recovered for up to 24 hours. Sitetrail retains a batch receipt to enforce the 25-idea free lifetime allowance or 100-idea paid billing-period allowance and avoid charging a retry twice. DeepSeek terms: https://cdn.deepseek.com/policies/en-US/deepseek-open-platform-terms-of-service.html and privacy: https://cdn.deepseek.com/policies/en-US/deepseek-privacy-policy.html. Sitetrail and Cloudflare policies above apply to the account and hosted service.

Publishing Partner eligibility: Check if my site qualifies sends the installed site's public URL and a temporary domain-verification challenge to Sitetrail, without requiring a Sitetrail account or granting publishing access. A pseudonymous requester identifier limits abuse. On a cache miss, the verified domain is sent to Ahrefs for Domain Rating. Ahrefs terms: https://ahrefs.com/legal/domain-rating-license and privacy: https://ahrefs.com/legal/privacy-policy. Sitetrail and Cloudflare policies above apply to eligibility and hosted partner processing.

Publishing Partner access: Only after a site administrator connects a Sitetrail account and gives explicit consent, Studio locally creates one dedicated WordPress Author, selected from John Glover, Ben Smith or Hilary Bains. The choice is retained for this site. It sets the disclosed name, email and biography and sends its revocable Application Password, site URL, author ID and partner reference over HTTPS to Sitetrail. The companion Partner Worker stores the credential encrypted, tests draft and media access, and removes its test content. After approval and the paid-plan gate, it makes authenticated content requests to this site's standard WordPress REST API and periodically checks connection health. It cannot remotely administer WordPress users, roles, passwords or sessions through Studio. WordPress or the site's theme may display the Author's Gravatar according to the site's existing avatar settings.

Leave partnership acts locally first: it revokes the dedicated Application Password and removes that Author's role on this site, then sends the partner reference, site URL and leave token to Sitetrail to withdraw routing, the active listing and future partner benefits. It retries if notification fails; connection-health checks provide a backstop. The user profile and previously published content are retained. Sitetrail's Unapprove stops routing and destroys the stored credential without modifying accounts on the partner site. Pause retains the encrypted credential for Resume. If renewal fails, the listing and boost are suspended while payment is outstanding. An existing active partner with Domain Rating 50 or higher can retain its one-publication benefit after the paid plan ends. This is separate from the one-time free media coverage offer for verified accounts.

Development services: Only when a local/development/staging environment explicitly configures them, Studio can use https://staging.sitetrail.com, https://sitetrail-article-worker-staging.esperora.workers.dev, https://newspass-ideas-staging.esperora.workers.dev and https://newspass-partner-staging.esperora.workers.dev instead of their production services. In that configuration, Leave notifies https://newspass-partner-staging.esperora.workers.dev/v1/partner/leave directly, sending the partner reference, site URL and leave token. The production Article service can also identify itself as https://sitetrail-article-worker-production.esperora.workers.dev. These endpoints have the same purposes and data categories described above. Public installs use the production Sitetrail services by default. No service credentials are included in this plugin.

Reference, support and certification links open only when clicked. Deactivation clears scheduled emails and performs the same local Publishing Partner access revocation and notification. Uninstall also removes the local Publishing Partner record. Calendar records, evidence, placement history, WordPress drafts and preferences are retained. Multisite keeps site records and preferences separate.

== Changelog ==

= 1.0.2 =
* Renamed to Sitetrail PR, SEO & AI Search Studio with the matching plugin slug and text domain.

= 1.0.1 =
* Removed the remotely initiated partner account-administration route. Leave remains local and retries removal from the network.
* Added three dedicated Author profiles with one stable choice per partner site and collision safeguards.
* Replaced the short internal prefix with npss_, preserving existing records, preferences, account connections and pending requests.
* Expanded external-service disclosures.

= 1.0.0 =
* Added NewsPass checkout with return to the saved draft, the one-time Newstrail offer, and Publishing Partner onboarding.
* Enabled AI article ideas through the standard Sitetrail account connection.

= 0.5.0 =
* Added the staging integration for the Guest Posts 1.5.11-based Studio adapter, including account access, article and media transfer, Google Doc identity, submission recovery, and the combined updates feed.

= 0.4.3 =
* Added a compact notification bell and email settings gear. The private staging feed demonstrates on-demand refresh with sample NewsPass updates.

= 0.4.2 =
* Made Month the default calendar view and added Week, an undated-ideas filter, and clearer planning actions.

= 0.4.1 =
* Added first-use guidance, examples, and clearer actions across the Studio screens.
* Show attached facts and sources next to the article workspace. Added dedicated NewsPass guide and sample article pages.

= 0.4.0 =
* Expanded the learning library with worked examples, practical steps, and knowledge checks.
* Added a complete annotated press release and a My Account-style submission workspace for the staging review.

= 0.3.0 =
* Refined the overview and added Sitetrail certification resources to Learn & templates.
* Added local staging previews of AI ideas, NewsPass plans, checkout return, and the Publishing Partner workflow.

= 0.2.0 =
* Added practical SEO and GEO lessons with a visual anchor text example, unlinked brand mentions, and a worked example on writing claims readers can verify.
* Enabled weekly site updates by default for the activating user on first site activation, with a persistent opt-out.

= 0.1.0 =
* Offline WordPress build with editorial planning, learning, manual placements, local previews, and optional site update emails.
