benecaster_supporter_wall_empty_message
Filters the empty-state message rendered by the [benecaster_supporter_wall] shortcode when no opted-in subscribers are found. The default message is 'No supporters yet — be the first!'. The returned string is embedded inside an empty-state p element within the wall’s wrapper div.
Returning an empty string suppresses the p but leaves the wrapper div in place. To suppress or replace the entire markup — for both the empty and populated branches — use benecaster_supporter_wall_output instead, which receives the assembled HTML for both states.
For the shortcode itself — attributes, defaults, and where the wall can be placed — see benecaster_supporter_wall.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$message |
string |
— | Default empty-state message string |
$show_id |
int |
— | ID of the show |
$atts |
array |
— | Resolved shortcode attributes |
Returns:
string
Examples
Custom message for a specific show
add_filter( 'benecaster_supporter_wall_empty_message', function (
string $message,
int $show_id,
array $atts
): string {
if ( 12 === $show_id ) {
return __( 'Be our first founding supporter!', 'my-theme' );
}
return $message;
}, 10, 3 );
Suppress the empty-state message
add_filter( 'benecaster_supporter_wall_empty_message', '__return_empty_string' );
Affects
- benecaster_supporter_wall shortcode empty state
Need this built rather than just documented? See our services →