Use a custom brand color for the play button on one show’s player cards
The player card in an episode notification is the episode’s artwork (the show’s when it has none) with a darkening layer and a round play button. The filter runs whenever a card’s address is written into an email and whenever the card is drawn.
Code
<?php
add_filter( 'benecaster_player_card_image_args', function ( array $args, int $episode_id ): array {
if ( 12 === (int) wp_get_post_parent_id( $episode_id ) ) {
$args['play_button_color'] = '#ffcc00';
$args['overlay_opacity'] = 0.25;
}
return $args;
}, 10, 2 );
Hooks Used
Need this built rather than just documented? See our services →