=== Streakfox ===
Requires at least: 6.4
Requires PHP: 8.0
Stable tag: 0.3.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn completed LearnDash lessons or approved member comments into visible progress and milestone rewards.

== Installation ==

1. Create a program in Streakfox and choose the WordPress connection.
2. Upload this ZIP in Plugins > Add plugin > Upload plugin and activate it.
3. Get a connection code from Streakfox setup and paste it into Settings > Streakfox.
4. Choose LearnDash lessons or approved member comments, then click Connect Streakfox.
5. Complete an action as a signed-in test member. Confirm progress in Streakfox and choose Go live.

The plugin configures your keys automatically and follows the program’s test/live status. Codes work once and expire in 10 minutes. Course restrictions and manual connection settings live under Advanced settings.

The plugin connects one Streakfox program per WordPress installation. LearnDash is required only for lesson tracking. A Streakfox account and connected program are required.

== External service and data ==

The plugin loads the Streakfox widget from https://cdn.streakfox.com/widget.js for signed-in members and sends completed actions to https://api.streakfox.com. Requests contain the project key, the action, a pseudonymous member hash, completion ID, timestamp, and test flag. Member emails and names are not sent. Signed identity tokens allow members to see their protected rewards.

Events are queued locally and delivered by WordPress cron. Successful payloads are cleared; completion IDs remain to prevent duplicate progress. Configure your host's scheduled cron for dependable delivery on quiet sites. Deactivation stops delivery and retains settings and queued events.

Coupon redemption, linked-resource access, and email follow-up remain controlled by your course/shop/automation provider. Do not share signed-in pages through a public page cache.

Setup and service information: https://streakfox.com/docs/sdk/wordpress

Connection setup and status checks use https://app.streakfox.com. Connection codes and program credentials are sent only to that service over HTTPS.

== Changelog ==

= 0.3.0 =
* Connect with one temporary code instead of copying four values.
* Follow program test/live status automatically.
* Keep advanced configuration out of the ordinary setup flow.

= 0.2.0 =
* Count approved comments from both native forms and the WordPress REST API.
* Restrict LearnDash tracking to an optional course ID.
* Schedule prompt background delivery after a new completion, with recurring recovery.

= 0.1.0 =
* Signed member identity, lesson/comment hooks, durable event delivery, and connection settings.
