benecaster_subscribe_tiers
Filters the array of membership tiers rendered by [benecaster_subscribe] on shows using built-in membership. Fires immediately before the tier rows are passed to the template, so callbacks can reorder, remove, or annotate what the visitor sees without touching tier configuration.
Removing a tier here hides it from the shortcode only. It does not close the tier or prevent signup through any other route, so this is presentation control rather than access control.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$rows |
array |
— | Tier rows about to be rendered, in display order. |
$show_id |
int |
— | Show post ID the shortcode is rendering for. |
Returns:
array
Examples
Hide a tier from the public subscribe form
add_filter( 'benecaster_subscribe_tiers', function ( array $rows, int $show_id ): array {
return array_values( array_filter( $rows, static function ( $row ) {
return 'legacy-founding' !== ( $row['slug'] ?? '' );
} ) );
}, 10, 2 );
Notes
Applies to built-in membership only. Shows using a third-party membership bridge render tiers from that plugin and are unaffected by this filter.
Need this built rather than just documented? See our services →