Keep a capped-cohort tier purchasable via direct link while hiding it from the public subscribe picker
SubscribeShortcode fires benecaster_subscribe_tiers( array $rows, int $show_id ) after is_active = 1 filtering and tier_order sorting, before the rows are localised for the React picker. Removing a row here hides the tier from the public-facing shortcode without disabling the tier — the tier_slug remains valid for POST /shows/{id}/subscribe. Use array_values() to re-index after filtering. Combine with a custom shortcode that calls the REST endpoint to give early supporters a private signup URL.
Code
<?php
add_filter( 'benecaster_subscribe_tiers', function ( array $rows, int $show_id ): array {
return array_values( array_filter( $rows, function ( array $tier ): bool {
return 'founding-member' !== $tier['tier_slug'];
} ) );
}, 10, 2 );
Hooks Used
-
benecaster_subscribe_tiers