benecaster_after_account_subscription
Fires immediately after the subscription section card closes inside the benecaster_account shortcode. Output echoed here appears below the subscription card, before the next show’s card on multi-show accounts.
Use this hook to append additional subscription details, help text, or add-on content that belongs below the Benecaster subscription card but is still contextually tied to that show. This hook fires only when a logged-in subscriber is viewing their own account.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$show_id |
int |
— | ID of the show |
$user_id |
int |
— | WordPress user ID of the logged-in subscriber |
Examples
Add episode archive link after card
add_action( 'benecaster_after_account_subscription', function ( int $show_id, int $user_id ): void {
$episodes_url = get_post_permalink( $show_id );
printf(
'<a href="%s" class="episodes-link">Browse all episodes →</a>',
esc_url( $episodes_url )
);
}, 10, 2 );
Notes
Output echoed from this hook appears below the subscription card. On multi-show accounts it sits below that show's card but before the next show's card.
Affects
- Subscriber Account Page
Need this built rather than just documented? See our services →