benecaster_tier_map_updated
Fires after a batch of tier mappings is saved for a show. This includes saves triggered from the drag-and-drop grid view, the list view dropdown assignments, and the Bridge Switch Wizard (Step 4 — Tier Mapping). The $count parameter reflects the number of individual mapping rows written; mapping rows for levels set to “No access” are deleted and not included in $count.
Use this hook to flush derived caches, re-check feed access for subscribers at affected tiers, or send a notification when the mapping changes.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$show_id |
int |
— | ID of the show |
$bridge_slug |
string |
— | Slug of the active bridge |
$count |
int |
— | Number of tier mappings saved in this batch |
Examples
Flush feed cache after mapping change
add_action( 'benecaster_tier_map_updated', function ( int $show_id, string $bridge_slug, int $count ): void {
do_action( 'benecaster_flush_feed_cache', $show_id );
}, 10, 3 );
Need this built rather than just documented? See our services →