speechkit_post_player_enabled
Use this filter to override whether the audio player is enabled/disabled for a specific post.
Parameters
$enabled
boolean
Is the player enabled?
$post_id
int
The Post ID
function speechkit_post_player_enabled( $enabled, $post_id ) {
// Disable the player for a specific Post ID
if ( $post_id === 42 ) {
$enabled = false;
}
return $enabled;
}
add_filter( 'speechkit_post_player_enabled', 'speechkit_post_player_enabled', 10, 2 );