benecaster_analytics_subscriber_count
Filters the subscriber count shown in the analytics dashboard.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$count |
int |
— | Subscriber count |
$show_id |
int |
— | ID of the show |
Returns:
int
Example
add_filter( 'benecaster_analytics_subscriber_count', function( $count, $show_id ) {
// Add inactive shadow records to the displayed count for a specific show.
if ( (int) $show_id === 42 ) {
$extra = (int) get_post_meta( $show_id, '_offline_subscriber_count', true );
$count += $extra;
}
return $count;
}, 10, 2 );