=== Releasebird ===
Contributors: releasebird
Tags: changelog, release notes, roadmap, feedback, widget
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed the Releasebird widget — changelog, roadmap, feedback, ideas and in-app support — on your WordPress site. Just paste your API key.

== Description ==

Releasebird is a product communication platform: publish release notes and a changelog, share a public roadmap, collect feedback and ideas, offer a searchable help center, and chat with your users — all from one embeddable widget.

This plugin adds the Releasebird widget to your WordPress site without touching theme files. Enter your API key on the settings page and the widget appears as a floating launcher (or attached to your own element).

Features:

* One-field setup — paste your API key, done.
* Optional: open the widget from your own button, link or menu item via a CSS selector, and hide the floating button.
* Optional: load the widget only for logged-in users.
* Optional: verify logged-in WordPress users (server-side HMAC) so they appear as verified in Releasebird. When they log out of WordPress, they are signed out of the widget too.
* The page never waits for the widget: it is loaded asynchronously in the footer.
* Suggested text for your privacy policy under Settings → Privacy.

You need a Releasebird account and an API key from your dashboard. The widget itself is loaded from Releasebird's hosted script.

== Installation ==

1. Install and activate the plugin.
2. Go to **Settings → Releasebird**.
3. Paste your API key from the Releasebird dashboard and save.
4. Visit your site — the widget launcher appears.

== Frequently Asked Questions ==

= Where do I get my API key? =
In your Releasebird dashboard under **Settings → Widgets** — it is the widget (public embed) key shown in the embed snippet, e.g. inside `Rbird.initialize('…')` or as `data-apiKey="…"`. It is a plain token (not prefixed with `rb_live_`). Note: the `rb_live_…` keys under **Settings → API Keys** are for the CLI/API and do not work here.

= The widget doesn't appear. What now? =
Check that the API key is correct, that "Enable widget" is on, and — if you enabled it — that you are logged in. Ad blockers or a strict Content Security Policy can also block the loader.

= Can I open the widget from my own button? =
Yes. Under "Open the widget from", enter the CSS selector of your button, link or menu item, for example `.open-releasebird` or `#whats-new`. A click on it opens the widget. Tick "Hide the floating button" if you only want your own element.

= Can I skip the widget on certain pages? =
Yes, with the `releasebird_load_widget` filter, for example: `add_filter( 'releasebird_load_widget', function ( $load ) { return $load && ! is_page( 'checkout' ); } );`

= I use a caching plugin. Anything to consider? =
The options "Logged-in users only" and user verification change the page for logged-in users. Make sure your cache does not serve pages cached for logged-in users to visitors (most caching plugins do this by default).

= How do I show logged-in users as verified? =
Add your Secret Hash Key (Releasebird → Settings → Widgets) on the plugin settings page and choose the identifier source (email or WordPress user id). The plugin signs the identity server-side, so signed-in users appear as verified and their conversations stay linked across devices. Without the secret, the widget runs anonymously.

The saved key is never printed back into the settings form. If you prefer not to store it in the database, define it in `wp-config.php` instead: `define( 'RELEASEBIRD_SECRET_HASH_KEY', '…' );`

== Screenshots ==

1. The Releasebird widget launcher on a WordPress site.
2. Settings → Releasebird: paste your Widget API key and save.
3. Optional: open the widget from your own element, verified identity for logged-in users.
4. Changelog, roadmap, feedback and help center inside the widget.

== External services ==

This plugin relies on Releasebird, a third-party service operated by buildnext GmbH. Without a Releasebird account the plugin does nothing.

On every page where the widget is active, the visitor's browser loads the widget script from `https://embedded.releasebird.com/widget.releasebird.umd.js`. The widget then talks to the Releasebird API (`https://api.releasebird.com`) to show your content and to send what visitors enter (messages, feedback, ideas, bookings). Sent along: your public widget API key, the visitor's IP address and browser details, and — only if you enable user verification — the logged-in user's name, email address, an identifier and its signature.

Nothing is sent from the WordPress admin area, and no data is sent before you enter an API key.

* Service: https://www.releasebird.com
* Terms: https://www.releasebird.com/terms-conditions
* Privacy policy: https://www.releasebird.com/privacy-policy

== Changelog ==

= 0.3.0 =
* Fixed: the "Launcher selector" and "Launcher element id" settings had no effect. They are replaced by "Open the widget from" (a CSS selector that really opens the widget) and "Hide the floating button".
* New: logging out of WordPress signs the user out of the widget when user verification is on.
* New: the secret hash key is no longer printed into the settings form and can be defined in wp-config.php (RELEASEBIRD_SECRET_HASH_KEY).
* New: the settings page checks the API key and warns about a CLI key (rb_live_…).
* New: `releasebird_load_widget` filter, suggested privacy policy text, status notice on the settings page.
* Changed: the widget is enqueued through WordPress instead of printed into the footer, and starts as soon as the script has loaded.
* Changed: settings are removed on every site of a network on uninstall.

= 0.2.0 =
* Optional verified identity for logged-in users: the plugin computes an HMAC-SHA256 signature server-side (using the workspace secret hash key) and passes it to the widget. New settings: secret hash key and identifier source (email or WordPress user ID).

= 0.1.0 =
* Initial release: embed the widget via your API key, optional custom launcher, and a logged-in-only toggle.

== Upgrade Notice ==

= 0.3.0 =
The launcher settings now work. If you used "Launcher selector", check "Open the widget from" on the settings page after updating.

= 0.2.0 =
Adds optional verified identity for logged-in users (server-side HMAC). No action needed for existing embeds.
