Template — account/avatar.php
templates/account/avatar.php
Avatar upload and Supporter Wall opt-in UI within the subscriber account page, rendered as a template part by account/dashboard.php. Expanded from 4 to 6 variables in feature/membership-launch-cleanup to support the “Why I support” message textarea.
Variables
| Variable | Type | Notes |
|---|---|---|
$user_id |
int | WordPress user ID of the current subscriber |
$avatar_url |
string|null | Current avatar URL; null when not set |
$supporter_wall_enabled |
bool | Whether the Supporter Wall feature is enabled for any of this subscriber’s shows |
$supporter_wall_visible |
bool | Whether the subscriber has opted in to appear on the wall |
$supporter_wall_message_enabled |
bool | New in feature/membership-launch-cleanup. Controls whether the .benecaster-supporter-wall-message textarea block renders. true when at least one active-token show has both _benecaster_show_supporter_wall_enabled and _benecaster_show_supporter_wall_show_why_field set to 1. |
$supporter_wall_message |
string | New in feature/membership-launch-cleanup. Pre-fills the message textarea. Empty string when the subscriber has not set a message. |
Both new variables default at the top of the template file. An override that only forwards the original four variables still renders without PHP notices — $supporter_wall_message_enabled defaults to false and the textarea block is suppressed.
Message Block Rendering
When $supporter_wall_message_enabled is true, the template renders a .benecaster-supporter-wall-message block below the existing opt-in checkbox. This block contains a <textarea> pre-filled with $supporter_wall_message and a save button that submits to POST /account/wall-message.
When $supporter_wall_message_enabled is false, no message block is emitted.
Theme Override Path
{theme}/benecaster/account/avatar.php
See template-overrides for the full override directory convention and lookup order.