=== BlogBERT ===
Contributors: abdullahkhansherwani
Tags: seo, blog, content, articles, schema
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.5.2
License: GPLv2 or later
License URI: https://wordpress.org/about/license/

Your own SEO team: BlogBERT researches, writes and publishes in-depth posts to your site, and keeps improving them.

== Description ==

BlogBERT picks topics from the searches your site almost wins and the ones your competitors own. It reads real sources before it writes, cites them, and publishes the post to WordPress with internal links, meta fields and structured data in place. A post can take up to an hour of research; it runs on the BlogBERT service, so nothing slows your site down.

This plugin connects your site to that service. From the BlogBERT menu in wp-admin you get four tabs:

* **Overview** — what is written, what is waiting for your review, and your plan usage at a glance;
* **Articles** — add a topic, follow writing progress, read a formatted preview, then publish, unpublish or restore an article;
* **Setup** — a four-step guided setup that fills in what WordPress already knows;
* **Performance** — your site's impressions, clicks, click rate and average Google position from Google Search Console.

Sign in with your Google account. The plugin never asks for a BlogBERT password: sign-in opens Google, and the session is managed by the same account service BlogBERT uses everywhere. Connecting publishing is one click; BlogBERT creates a dedicated user named `blogbert-publisher` and issues it a WordPress Application Password (a separate, revocable password for one app). You never type it: pressing Connect automatically sends it to the BlogBERT service, which uses it to publish posts to this site through the WordPress REST API. That user has its own BlogBERT publisher role with only these capabilities: `read`, `edit_posts`, `edit_published_posts`, `publish_posts` and `upload_files`. It can create, update, publish and unpublish its own posts and upload their images. It cannot touch other users' posts or pages, categories, comments, users, plugins, themes or settings, and it cannot post unfiltered HTML or scripts. It cannot sign in, use XML-RPC, change its own password, email or profile, or create more Application Passwords. BlogBERT checks this role on every Connect and again before it publishes, and stops if the user has gained any other capability.

Setup starts from your WordPress site name, tagline, language and the current user's display name. Your readers' country is preselected from your WordPress language and shown by name; articles are written in English. Pick a writing voice and a weekly pace, then save. Autopilot is the publishing mode: finished articles publish automatically and can be unpublished or reverted from Articles.

The free Base plan is active automatically for WordPress customers. It includes the account's monthly article allowance; there is no card, trial or upgrade step. The Articles tab shows what is left this month.

Google Search Console is optional. In Setup you can connect it in one click, skip it, or add it yourself; nothing waits on it. When it is connected, the Performance tab shows impressions, clicks, click rate and average Google position for the last 28 days with daily trends. To verify the site, the plugin prints a `google-site-verification` meta tag from the token the service returns.

SEOPress is integrated for richer metadata. With another SEO plugin, or none, BlogBERT sets the core WordPress title and description, which WordPress and most themes use; SEOPress adds its own fields when it is active.

Disconnect first asks BlogBERT to revoke its credential, then removes every Application Password the publisher user has, and tells you if that fails, with a link to that user's Application Passwords screen. Reconnecting removes the older ones in the same way. Deactivating the plugin also removes them along with the user's role; choose Connect again after reactivating. Uninstalling removes the role and the plugin's settings. Your posts and the `blogbert-publisher` user that owns them stay.

The plugin also serves a public `/llms.txt` file that describes your site to AI assistants. WordPress builds it on each request from the posts BlogBERT has published here, so nothing outside your site can change it. The plugin also adds search-engine structured data (JSON-LD) to each BlogBERT post.

A BlogBERT account is required. Choose **Continue with Google** on the BlogBERT screen; there is no password to create.

== Installation ==

1. Install and activate the plugin.
2. Open **BlogBERT** in wp-admin and choose **Continue with Google**.
3. As an administrator, press **Connect this site**.
4. Confirm the business details WordPress filled in, then add your first topic.

Connecting needs WordPress Application Passwords, which are on by default in WordPress 5.6 or later on sites served over HTTPS. If they are turned off, the plugin says so before you sign in and links to WordPress's guide.

== Frequently Asked Questions ==

= Does BlogBERT publish without my approval? =

Finished articles publish automatically on Autopilot; you can unpublish or revert any post from the Articles tab at any time.

= Which SEO plugins does it work with? =

SEOPress is integrated and BlogBERT fills its title and description fields. With Yoast SEO, Rank Math or no SEO plugin, BlogBERT sets the core WordPress title and description; SEOPress gives richer metadata if you add it.

= What does it cost? =

The Base plan is free and active automatically. It includes a monthly article allowance shown in the Articles tab. There is no card on file and nothing to cancel.

= How do I sign in? =

Choose **Continue with Google**. There is no BlogBERT password to create or type.

= Do I have to connect Search Console? =

No. It is optional and you can skip it in Setup, then connect it later from Performance. Setup never blocks on it.

== External services ==

This plugin relies on the BlogBERT service, run by Inferya. It contacts these services only when a site user opens the BlogBERT screen: to sign in, or, if that browser is already signed in, to restore the sign-in and load your site's status, and — once you connect Google Search Console — its status and search performance.

**BlogBERT service** (https://blogbert.inferya.com). The plugin forwards the signed-in user's requests from wp-admin: your site address, business setup, topics, and article actions (write, publish, unpublish, revert, publishing mode). On Connect it automatically sends the restricted `blogbert-publisher` user's login, ID and newly issued Application Password to the BlogBERT service, which uses them to publish posts to this site through the WordPress REST API. Terms: https://inferya.com/terms/ Privacy policy: https://inferya.com/privacy/

**BlogBERT accounts** (`supabase.inferya.com`, a Supabase Auth server run by Inferya). Signing in completes Google sign-in through this accounts service and returns a short-lived session that the plugin's browser code keeps for your BlogBERT account. No BlogBERT password is created or sent. Same terms and privacy policy as above.

**Google sign-in** (https://accounts.google.com), when you choose Continue with Google. Google's terms: https://policies.google.com/terms Privacy: https://policies.google.com/privacy

**Google Search Console** (https://search.google.com/search-console), only if you connect it in Setup or Performance. Google's consent screen grants read-only search performance access. The plugin also prints the verification meta tag that Google gives the BlogBERT service. Google's terms and privacy policy are linked above.

The plugin bundles the official supabase-js library (MIT licensed, `vendor/`), unmodified. `vendor/supabase.js` is the minified build of @supabase/supabase-js 2.117.2; the license notice is `vendor/supabase-js-LICENSE.txt`, and its readable source is at https://github.com/supabase/supabase-js.

== Changelog ==

= 0.5.2 =
* View on site appears only for published articles.
* Connect now explains when Plain permalinks need changing.
* Fixed the help link shown when WordPress Application Passwords are turned off.
* Removed the greyed-out Draft control. Autopilot is the publishing mode; you can still unpublish or revert any post.
* The readme names the accounts host instead of linking to it, and the logo now ships as a PNG.

= 0.5.1 =
* Raised the contrast of helper, meta, table-header and footer text, gave form fields a visible border, and strengthened completed-step and success/warning-chip colors.
* Choosing a writing voice keeps keyboard focus on the chosen button.
* Article previews are keyboard-scrollable and announced as a named region.
* Status messages are announced through WordPress's accessibility API.
* The readme now states that Connect automatically sends the restricted publisher's Application Password to the BlogBERT service.
* The bundled Supabase library's MIT license notice now ships as `vendor/supabase-js-LICENSE.txt`, with the notice unchanged.

= 0.5.0 =
* Complete wp-admin interface rewrite with Overview, Articles, Setup and Performance tabs.
* Google-only sign-in with automatic publisher user and Application Password provisioning.
* Four-step guided onboarding, optional Search Console connection, and live performance metrics.
* Markdown article preview with publish, unpublish, and restore actions.
* SEOPress integration, automated verification meta tag, and free Base plan support.
* Tested up to WordPress 7.1.
