Skip to main content

benecaster_feed_podcast_funding_label

Filter Free Since v1.0.0

Filters the label text on the `podcast:funding` element — the clickable text podcast apps display to invite listeners to support the show. Defaults to `{show_title} Listener Support`. When Listener Support is active the label is populated from the payment link; otherwise it falls back to the custom funding URL field in **Show Settings → Podcasting 2.0**.

Parameters

Name Type Default Description
$label string Funding link label text
$show_id int Show post ID

Returns: string

Example

add_filter( 'benecaster_feed_podcast_funding_label', function( $label, $show_id ) {
    // Use the show name from a custom field instead of the default pattern.
    $show_name = get_post_meta( $show_id, '_benecaster_short_show_name', true );
    if ( $show_name ) {
        return 'Support ' . $show_name;
    }
    return $label;
}, 10, 2 );