/** * Return an array of post objects. * * <code class="php"> * // render published transcripts * if ( $transcripts = get_webcomic_transcripts() ) { * foreach ( $transcripts as $post ) { setup_postdata( $post ); * the_content(); * ?> * <footer><?php the_webcomic_transcript_authors(); ?></footer> * <?php * } * * wp_reset_postdata(); * } * * // render transcript forms to update transcripts marked as 'pending review' for the current post * if ( $transcripts = get_webcomic_transcripts( true ) ) { * foreach ( $transcripts as $transcript ) { * webcomic_transcript_form( array(), $transcript ); * } * } * </code> * * @package Webcomic * @param boolean $pending Whether to retrieve transcripts pending review. * @param array $args An array of arguments that will be passed to get_children(). * @param mixed $the_post The post object or ID to retrieve transcripts for. * @return array * @uses WebcomicTag::get_webcomic_transcripts() */ function get_webcomic_transcripts($pending = false, $args = array(), $the_post = false) { return WebcomicTag::get_webcomic_transcripts($pending, $args, $the_post); }