__( 'Title', $text_domain ), 'value' => 'title' ), array( 'label' => __( 'User Name', $text_domain ), 'value' => 'user' ), array( 'label' => __( 'Views', $text_domain ), 'value' => 'views' ), array( 'label' => __( 'Date', $text_domain ), 'value' => 'date' ), array( 'label' => __( 'Live Stream Countdown (when applies)', $text_domain ), 'value' => 'countdown' ), array( 'label' => __( 'Stats (like and comment counts)', $text_domain ), 'value' => 'stats' ) ) ?>
>

$channel_id, 'post_status' => array( 'draft', 'pending' ), 'posts_per_page' => -1 ); $draft_posts = new SBY_YT_Query( $args ); $draft_posts_arr = $draft_posts->get_posts(); $num_draft_posts = count( $draft_posts_arr ); $first_post = isset( $draft_posts_arr[0] ) ? $draft_posts_arr[0] : false; $args = array( 'channel_id' => $channel_id, 'post_status' => array( 'publish' ), 'posts_per_page' => -1 ); $publish_posts = new SBY_YT_Query( $args ); $publish_posts_arr = $publish_posts->get_posts(); $num_publish_posts = count( $publish_posts_arr ); if ( ! $first_post && isset( $publish_posts_arr[0] ) ) { $first_post = $publish_posts_arr[0]; } if ( $first_post ) : $channel_title = get_post_meta( $first_post->ID, 'sby_channel_title', true ); ?>
| |