Skip to main content

Unlock the show notes wherever you unlock the player

Free Beginner

Give a preview or trial add-on the same access to the show notes that it gives the player, instead of unlocking one and leaving the other showing the teaser.

The two filters take the same four arguments — ( bool $show, int $episode_id, ?int $user_id, ?string $user_tier ) — so one callback can decide both.

Website only. The feed is gated separately, by availability and the bridge — neither filter changes what a podcast app receives.

Code

<?php
$my_trial = function ( bool $show, int $episode_id, ?int $user_id ): bool {
    return $show || ( $user_id && my_trial_is_active( $user_id ) );
};
add_filter( 'benecaster_show_episode_player',  $my_trial, 10, 3 );
add_filter( 'benecaster_show_episode_content', $my_trial, 10, 3 );

View on GitHub →

Hooks Used

Need this built rather than just documented? See our services →