# ChurnAnchor documentation

> Install and configure ChurnAnchor for WooCommerce Subscriptions: reasons, offers, cooldown, the dashboard, template overrides, developer hooks and privacy.

Source: https://churnanchor.marul.co/docs/
Last updated: 2026-11-25

# ChurnAnchor documentation

ChurnAnchor replaces the instant **Cancel** action in WooCommerce Subscriptions with a short flow: a reason, at most one matching offer, and a cancel button on every step. This page covers installation, settings, how offers change a subscription, the dashboard, customisation and privacy.

## Requirements

- WordPress 6.5 or later, PHP 7.4 or later
- WooCommerce 9.0 or later (HPOS and block checkout are supported)
- WooCommerce Subscriptions, active

## Install

1. [Download the zip](https://churnanchor.marul.co/downloads/churnanchor-0.1.1.zip) and check its [SHA-256 checksum](https://churnanchor.marul.co/downloads/churnanchor-0.1.1.zip.sha256).
2. In WordPress, go to **Plugins → Add New → Upload Plugin**, choose the zip and activate it.
3. Open **WooCommerce → ChurnAnchor**. The flow is on by default.

Customers now reach the flow when they click **Cancel** on a subscription in My Account. The flow lives at `/my-account/churnanchor-cancel/{subscription-id}/`.

## Settings

| Setting | Default | What it does |
|---|---|---|
| Cancellation flow | On | Turns the flow on or off. When off, Cancel works as before. |
| Skip the next renewal | On | Offer to move the next payment date forward by one billing period. |
| Pause | On, 3 months | Offer to move the next payment date forward by 1, 2 or 3 months. |
| Offer cooldown | 90 days | After accepting an offer, a customer will not see another one for this many days. |
| Reasons | 6 reasons | One per line, three parts separated by vertical bars: key, label, offer (`skip`, `pause` or empty). |
| Delete data on uninstall | Off | Removes ChurnAnchor tables, settings and subscription meta when the plugin is deleted. |

Default reasons and their offers:

| Reason | Offer |
|---|---|
| I have too much product right now | skip |
| It is too expensive | pause |
| I am not using it enough | pause |
| Quality or delivery problems | none |
| I am switching to something else | none |
| Something else | skip |

## How offers change a subscription

- **Skip** and **pause** call WooCommerce Subscriptions' own date update for `next_payment`. The status stays **Active**; nothing is put on hold.
- An offer is shown only if the subscription is active, past any trial, has a future next payment, its payment method supports date changes, the new date is before any fixed end date, and the customer is not in the cooldown.
- A note is added to the subscription, for example: *"customer accepted Skip the next renewal instead of cancelling. Next payment moved from … to …"*.
- **Paid-period protection.** ChurnAnchor remembers the date the customer had paid up to. If they cancel before paying again, access ends on that date, not on the moved date. If that date has already passed, the subscription is cancelled immediately.
- **One offer per paid renewal.** After an offer, no new skip or pause is possible until a renewal is paid.

## The dashboard

**WooCommerce → ChurnAnchor** shows the last 30 days:

- customers who started cancelling, and how many accepted an offer
- cancellations
- monthly revenue kept, split into **verified** (a renewal was paid after the offer), **pending** and **lost later** (cancelled before paying), per currency
- the five most common reasons

Revenue is the subscription subtotal minus discounts, without tax or shipping, normalised to one month (weekly × 52 / 12, yearly / 12, divided by the billing interval).

## Customise the template

Copy `wp-content/plugins/churnanchor/templates/cancel-flow.php` to `wp-content/themes/your-theme/churnanchor/cancel-flow.php` and edit it. Keep a visible cancel button on every step.

## Developer hooks

| Hook | Type | Use |
|---|---|---|
| `churnanchor_offer_for_reason` | filter | Change which offer (`skip`, `pause`, or a custom key) a reason shows. Args: `$offer, $reason_key`. |
| `churnanchor_offer_eligible` | filter | Allow or block an offer for a subscription. Args: `$eligible, $subscription, $offer`. |
| `churnanchor_apply_offer` | filter | Apply a custom offer. Return `true` or a `WP_Error`; return `null` to let ChurnAnchor handle it. Args: `$result, $subscription, $offer`. |
| `churnanchor_offer_label` | filter | Label for a custom offer key. |
| `churnanchor_event` | action | Fires after a flow event is recorded (`attempt`, `reason`, `offer_shown`, `offer_accepted`, `cancelled`). Args: `$id, $row`. |

## Privacy

- No external requests, no tracking, no cookies added by the plugin.
- Stored on your site: the reason, the optional comment, the offer shown or accepted, and the subscription's monthly amount.
- Tools → Export Personal Data includes these records; Tools → Erase Personal Data removes the customer link and the comment.
- A suggested paragraph is added to **Settings → Privacy → Policy guide**.

## Frequently asked questions

### Why don't I see an offer on my test subscription?

Offers need an active subscription with a future next payment, a payment method that supports date changes, no active trial, and no offer accepted in the cooldown or since the last paid renewal.

### Does ChurnAnchor change prices or add coupons?

No. The free version only offers skip and pause. Discount offers are planned for the Pro add-on.

### What happens if I deactivate ChurnAnchor?

The Cancel button goes back to WooCommerce Subscriptions' default. Data stays unless you enabled "Delete data on uninstall" and delete the plugin.
