benecaster_pricing_table_output
Filters the complete HTML output of [benecaster_pricing_table]. $tiers contains only the tiers rendered (after exclude is applied). Use to inject feature list rows between tier columns, add a custom CTA variant, or replace the table structure entirely.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$output |
string |
— | Complete HTML output of the pricing table |
$tiers |
array |
— | Array of tier objects {slug, name, price} included in the table (after exclude is applied) |
$atts |
array |
— | Resolved shortcode attributes |
Returns:
string
Example
add_filter( 'benecaster_pricing_table_output', function( $output, $tiers, $atts ) {
// Append a custom "Most popular" badge to the premium column via CSS class injection.
$output = str_replace(
'class="bc-tier-col bc-tier-premium"',
'class="bc-tier-col bc-tier-premium bc-tier-popular"',
$output
);
return $output;
}, 10, 3 );