示例#1
0
文件: tags.php 项目: ecerta/webcomic
 /**
  * Is the current post a webcomic?
  * 
  * <code class="php">
  * if ( is_a_webcomic() ) {
  * 	// the current post is a webcomic
  * }
  * 
  * if ( is_a_webcomic( 42 ) ) {
  * 	// the post with an ID of 42 is a webcomic
  * }
  * 
  * if ( 'webcomic42' === get_post_type() ) {
  * 	// the current post is a webcomic in collection 42
  * }
  * </code>
  * 
  * @package Webcomic
  * @param mixed $the_post Post object or ID to check.
  * @return boolean
  * @uses WebcomicTag::is_a_webcomic()
  */
 function is_a_webcomic($the_post = false)
 {
     return WebcomicTag::is_a_webcomic($the_post);
 }