Skip to main content

benecaster_before_account_free_switch

Action Free

Fires before the Free Plan section inside a subscription card on the [benecaster_account] dashboard: the move down to the show’s free plan, or, for a member already on it, the link to take out a paid plan. Echo your output.

Fires once per subscription card, and only for a subscription backed by the built-in membership, immediately after benecaster_after_account_cadence_switch and before the Extras (buy-ups) section. It fires even when the section itself shows nothing — a show with no free tier, or a subscriber who can’t change plan right now — because it wraps the section’s template rather than its output. The section is free_switch in the shortcode’s sections attribute.

Parameters

Name Type Default Description
$show_id int — The show whose subscription card is rendering.
$user_id int — The subscriber viewing their own account page.

Need this built rather than just documented? See our services →