public function get_videos() { $videos = array(); $query = $this->get_video_posts(); // The Loop if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); $video['id'] = get_the_ID(); $videos['id' . $video['id']] = Flowplayer5_Output::single_video_processing($video); $videos['id' . $video['id']]['content'] = get_the_content(); } } wp_reset_postdata(); return $videos; }
/** * Output video * * @since 1.9.0 * * @param array $atts */ function fp5_video_output($atts) { $flowplayer5_output = new Flowplayer5_Output(); return $flowplayer5_output->video_output($atts); }