Created
July 26, 2019 13:32
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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