示例#1
0
文件: tags.php 项目: ecerta/webcomic
 /**
  * Does the current webcomic have any transcripts?
  * 
  * <code class="php">
  * if ( have_webcomic_transcripts() ) {
  * 	// the current post has published transcripts
  * }
  * 
  * if ( have_webcomic_transcripts( true ) ) {
  * 	// the current post has transcripts pending review
  * }
  * 
  * if ( have_webcomic_transcripts( false, 'en' ) ) {
  * 	// the current post has published transcripts assigned to the language with a slug of 'en'
  * }
  * 
  * if ( have_webcomic_transcripts( false, '', 42 ) ) {
  * 	// the post with an ID of 42 has published transcripts
  * }
  * </code>
  * 
  * @package Webcomic
  * @param boolean $pending Does the current webcomic have any transcripts pending review?
  * @param string $language Language slug to limit any transcripts to.
  * @param mixed $the_post Post object or ID to check for transcripts.
  * @return boolean
  * @uses WebcomicTag::have_webcomic_transcripts()
  */
 function have_webcomic_transcripts($pending = false, $language = '', $the_post = false)
 {
     return WebcomicTag::have_webcomic_transcripts($pending, $language, $the_post);
 }