Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jonathanbossenger/518050da493c69e03822e93a61e18e0d to your computer and use it in GitHub Desktop.
<?php
//Hook into the ssp_episode_query_args to show episode stats for all public and private podcasts
add_filter( 'ssp_episode_query_args', 'ssp_episode_query_args_callback', 10, 2 );
function ssp_episode_query_args_callback( $args, $context ) {
if ( 'stats' !== $context ) {
return $args;
}
$args['post_status'] = array( 'publish', 'private' );
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment