=== BitzSearch ===
Contributors: bitzsearch
Tags: seo, meta description, canonical, rest api, seo title
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lets BitzSearch set the SEO title, meta description, focus keyphrase and canonical URL of the posts it publishes, in Yoast SEO, Rank Math or SEOPress.

== Description ==

[BitzSearch](https://bitzsearch.com) writes and publishes blog posts on your WordPress site through the WordPress REST API. WordPress itself has no field for an SEO title or a meta description, and every SEO plugin keeps its fields in its own way, with its own rules for who may change them. This small plugin gives BitzSearch one set of fields for its own posts and fills in the SEO plugin you use, following those rules. It does nothing else.

What it does:

* It registers four post meta fields that BitzSearch can send with a post: SEO title, meta description, focus keyphrase and canonical URL. Only editors and administrators can write them (users who may edit the posts of others), and only on posts published by BitzSearch. Authors and contributors cannot.
* After the post is saved, it copies those values into the fields of the active SEO plugin: Yoast SEO, Rank Math or SEOPress (all of them, if more than one is active). You see and edit them in the SEO box of the post, as always.
* A field you changed or cleared yourself is never overwritten. The plugin remembers what it wrote and only replaces its own value.
* Without an SEO plugin, it prints the meta description, the SEO title and the canonical URL in the page head itself, on BitzSearch posts only.
* It tells BitzSearch, through a REST route for logged-in users, that it is active, its version and which SEO plugin it serves.

What it never does:

* It never touches posts, pages or other content that BitzSearch did not publish.
* It makes no outgoing requests, collects no data, shows no notices or ads, and has no settings screen.
* It adds no options or database tables. Removing the plugin deletes the values BitzSearch sent; the SEO title and description already copied into your SEO plugin stay.

= Nederlands =

BitzSearch schrijft en publiceert blogartikels op je WordPress-site. Deze plug-in laat BitzSearch de SEO-titel, de metabeschrijving, het focuszoekwoord en de canonieke URL van zijn eigen berichten invullen in Yoast SEO, Rank Math of SEOPress. Ze raakt alleen berichten die BitzSearch publiceerde, overschrijft nooit wat je zelf aanpaste, maakt geen verbindingen naar buiten en heeft geen instellingen.

== Installation ==

1. Go to Plugins > Add Plugin, search for "BitzSearch", install and activate.
2. There are no settings.

== External services ==

This plugin does not contact any external service itself: it makes no outgoing requests and sends no data anywhere. It is the companion plugin of BitzSearch, an external, paid service that needs an account. Without BitzSearch the plugin does nothing.

What BitzSearch is: a service of SpaceBitz Consultants - FZCO ([bitzsearch.com](https://bitzsearch.com)) that writes blog posts for your business and publishes them on your site.

How and when it connects to your site: only after you connect your site in BitzSearch with an application password, and only with the rights of the WordPress account you approve. From then on the BitzSearch servers use the WordPress REST API of your site when they publish, update or remove a post and when they check the connection. They:

* read the routes the REST API offers, the account they connect with, the status of this plugin (`/wp-json/bitzsearch/v1/status`), their own posts, and the id and language of one recent post, to recognise the languages of the site;
* create and update the posts BitzSearch writes, with their images, and send the SEO title, meta description, focus keyphrase and canonical URL of this plugin with them;
* take a post offline by setting it back to draft, or move it to the trash, never deleting it permanently, and only for posts BitzSearch published;
* can create a user "BitzSearch" with the Author role, shown as the author of its posts;
* on a multilingual site (Polylang or WPML), read its languages, and, only when BitzSearch has switched this on for your site, set the language of a BitzSearch post and link it to its translation;
* revoke their own application password on your site when you disconnect.

To write its posts, BitzSearch also reads the public pages of your site, as any visitor can.

Posts written by BitzSearch contain a 1x1 pixel image, and sometimes a contact button whose link passes through BitzSearch. They count how often a post is read and how often a visitor clicks to get in touch. The IP address of a visitor is only used as a salted hash, cleared within a day, and no cookies are set. This is part of the post content, not of this plugin, and is described in the privacy policy below.

* Terms of use: [https://app.bitzsearch.com/terms.html](https://app.bitzsearch.com/terms.html)
* Privacy policy: [https://app.bitzsearch.com/privacy-policy.html](https://app.bitzsearch.com/privacy-policy.html)

== Frequently Asked Questions ==

= Do I need BitzSearch to use this plugin? =

Yes. The plugin only acts on posts that BitzSearch published. On its own it does nothing.

= Which posts does it change? =

Only posts that carry the BitzSearch marker (the post meta `_bitzsearch_id`), which BitzSearch sets when it publishes a post. Your own posts and pages are never changed.

= What happens to a field I edited myself? =

It stays as you set it. The plugin only replaces a value it wrote itself and that nobody changed since.

= Which SEO plugins are supported? =

Yoast SEO, Rank Math and SEOPress. Without an SEO plugin, the plugin prints the meta description, title and canonical URL itself. With another SEO plugin (for example All in One SEO or The SEO Framework) it stays out of the page head, so there are never two descriptions.

= Does the plugin send data anywhere? =

No. It makes no outgoing requests. BitzSearch talks to your site through the WordPress REST API, with the application password you gave it when you connected your site.

= What is removed when I delete the plugin? =

The values BitzSearch sent. Two small hidden fields stay on BitzSearch posts: the BitzSearch marker and a note of what the plugin wrote in your SEO plugin, so that a reinstalled plugin still knows which values are yours and which are its own. The values already copied into Yoast SEO, Rank Math or SEOPress stay, so your posts keep their SEO title and description.

= Who can set these fields? =

Editors and administrators. BitzSearch uses the WordPress account you approve when you connect your site; to set these fields, that account must be an editor or administrator. Authors and contributors cannot set the BitzSearch fields, in the same way SEO plugins keep fields such as the canonical URL from them.

== Changelog ==

= 1.0.0 =
* First version: SEO title, meta description, focus keyphrase and canonical URL for Yoast SEO, Rank Math and SEOPress, and in the page head without an SEO plugin.

== Upgrade Notice ==

= 1.0.0 =
First version.
