benecaster_listener_support_output
Fires at the very end of [benecaster_listener_support] rendering, after all inner content including the confirmation screen. Returns empty string if no Stripe keys are configured — the filter still fires in that case, allowing code to inject an alternative CTA when Listener Support is unconfigured.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$html |
string |
— | Full rendered shortcode output |
$style |
string |
— | Shortcode style: 'form', 'button', or 'icon' |
$atts |
array |
— | Resolved shortcode attributes |
Returns:
string
Example
add_filter( 'benecaster_listener_support_output', function( $html, $style, $atts ) {
// Wrap the shortcode output in a custom container div.
if ( $html ) {
$html = '<div class="my-support-widget">' . $html . '</div>';
}
return $html;
}, 10, 3 );
Notes
See the [[benecaster_listener_support] shortcode](/shortcodes/benecaster-listener-support/) for placement and configuration options.