Skip to main content

benecaster_before_account_buyups

Action Premium Since v1.0.0

Fires immediately before the Add-ons (buy-ups) section renders on the subscriber account page. Output echoed here appears above the add-ons section. This hook only fires when at least one active buy-up is available to the current subscriber — it does not fire when no buy-ups are defined for the show or when none are available for the subscriber’s tier.

A paired hook, benecaster_after_account_buyups, fires immediately after the section closes. To inject content unconditionally around the subscription area regardless of buy-up availability, use the broader account page template hooks instead.

Parameters

Name Type Default Description
$show_id int ID of the show
$user_id int WordPress user ID of the logged-in subscriber

Examples

Inject intro text above add-ons section

add_action( 'benecaster_before_account_buyups', function ( int $show_id, int $user_id ): void {
    echo '<p class="addon-intro">Unlock bonus content with a one-click add-on.</p>';
}, 10, 2 );

Notes

Neither this hook nor benecaster_after_account_buyups fires when there are no active buy-ups available to the current subscriber. Both hooks are Premium — they only register when a valid license is active.

Affects

  • Subscriber Account Page