Skip to main content

benecaster_listener_support_message

Filter Free

Filters the message body text displayed in the Listener Support prompt.

Return a string. Cast with (string). $show_id is 0 when no show is in context, so a callback targeting one show must test for that. Returning '' renders the prompt without its message rather than suppressing the prompt.

Parameters

Name Type Default Description
$message string — Message body text
$show_id int — ID of the show

Returns: string

Example

add_filter( 'benecaster_listener_support_message', function( $message, $show_id ) {
    // Replace the message with a custom one from an options field.
    $custom = get_post_meta( $show_id, '_listener_support_message', true );
    return $custom ?: $message;
}, 10, 2 );

Notes

See the benecaster_listener_support shortcode for placement and configuration options.

Affects

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