benecaster_show_account_wall_name_field
Controls whether the wall name field renders on the subscriber account page ([benecaster_account]). Replaces the deprecated benecaster_show_account_display_name_field hook.
The default callback returns true when any one community signal is active on the site: the Supporter Wall on for at least one show, a published post containing [benecaster_member_thanks], or the Podcast Workflow add-on switched on for any connected show. Each signal shows the field on its own. For a member one of whose shows has the Supporter Wall on, it sits inside the Supporter Wall section (What name should appear on our supporter wall?); for any other member it is a section of its own after the avatar section (What name should we use when we thank you?). The result is cached in the benecaster_account object-cache group for 10 minutes.
The field is not show-scoped — it sets a single _benecaster_wall_display_name usermeta value shared across all shows. It is rendered by the account/avatar.php template, which receives $wall_name_field_enabled, $wall_name_input_default and $supporter_wall_active. A theme copy of account/avatar.php made before the field could stand on its own keeps it inside the Supporter Wall block, so members with no wall never see it: re-copy it.
Returning false also suppresses the first-run wall-name overlay — the overlay only fires when this filter returns true. Force-show or force-hide with a straight callback when the heuristic is wrong for a site.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$enabled |
bool |
— | Whether to render the wall name field. Default computed by community-feature detection. |
Returns:
bool
Examples
Always show the wall name field regardless of community features
add_filter( 'benecaster_show_account_wall_name_field', '__return_true' );
Never show the wall name field, even if Supporter Wall is active
add_filter( 'benecaster_show_account_wall_name_field', '__return_false' );
Affects
- Subscriber Account Page
- account/avatar.php template
Need this built rather than just documented? See our services →