benecaster_after_account
Fires after the benecaster_account shortcode wrapper closes. This is the last hook point inside the account shortcode — output echoed here appears below all built-in account sections.
This includes the default account page. The page Benecaster creates for you at /podcast-account/ is built from the benecaster_account shortcode, so this hook fires there just as it does anywhere else you place the shortcode yourself. The same is true of the account dashboard as it appears inside a membership plugin’s own account area — the WooCommerce Podcast Subscriptions tab, and the sections added to MemberPress and Restrict Content Pro account pages all render through the same shortcode. Anything hooked here runs on every one of them, and this applies to all the account hooks, not just this one.
This hook fires only when a logged-in subscriber is viewing their own account page. It does not fire for guest visitors or when the page is previewed in the WordPress admin.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$user_id |
int |
— | WordPress user ID of the logged-in subscriber |
Examples
Inject footer note below account
add_action( 'benecaster_after_account', function( int $user_id ): void {
echo '<div class="my-addon-footer-note">Need help? <a href="/support">Contact support</a></div>';
} );
Affects
- Subscriber Account Page
Need this built rather than just documented? See our services →