Custom Empty State CTA on the Donor Wall
Replace the default “No donations yet” empty state with a bespoke call-to-action block that links to your Listener Support checkout page.
Code
<?php
add_filter( 'benecaster_donor_wall_empty_message', function ( string $html, int $show_id ): string {
$checkout_url = home_url( '/support-the-show/' );
return sprintf(
'<div class="my-theme-donor-wall-empty">'
. '<h3>%s</h3>'
. '<p>%s</p>'
. '<a class="button button-primary" href="%s">%s</a>'
. '</div>',
esc_html__( 'Be the first supporter', 'my-theme' ),
esc_html__( 'Your name lands here the moment your first tip clears.', 'my-theme' ),
esc_url( $checkout_url ),
esc_html__( 'Tip the show', 'my-theme' )
);
}, 10, 2 );
Hooks Used
-
benecaster-donor-wall-empty-message