Skip to main content

benecaster_before_account_avatar

Action Free

Fires immediately before the subscriber’s avatar section renders on the [benecaster_account] dashboard. Use it to prepend markup above the profile picture block. Echo your output; nothing is captured or returned.

Takes $user_id only, not ( $show_id, $user_id ) like the per-subscription benecaster_before_account_* actions, because the avatar section renders once for the person rather than once per subscription card. A callback registered for two arguments receives null as its second.

Parameters

Name Type Default Description
$user_id int — The subscriber viewing their own account page.

Notes

Fires only when avatars are enabled and the avatar section is in the shortcode's sections list.

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