/** * Is the current post a Webcomic-recognized attachment? * * <code class="php"> * if ( is_a_webcomic_attachment() ) { * // the current post is a webcomic-recognized attachment * } * * if ( is_a_webcomic_attachment( 42 ) ) { * // the post with an ID of 42 is a webcomic-recognized attachment * } * * if ( is_a_webcomic_attachment( 0, 'webcomic42' ) ) { * // the current post is a webcomic-recognized attachment in collection 42 * } * </code> * * @package Webcomic * @param mixed $the_post Post object or ID to check. * @param mixed $collection Collection ID or an array of these to check. * @return boolean * @uses WebcomicTag::is_a_webcomic_attachment() */ function is_a_webcomic_attachment($the_post = false, $collection = '') { return WebcomicTag::is_a_webcomic_attachment($the_post, $collection); }