/** * Is the query for the last webcomic? * * <code class="php"> * if ( is_last_webcomic() ) { * // this is the last webcomic in the collection * } * * if ( is_last_webcomic( true, 42, 'character' ) ) { * // This is the last webcomic featuring any similar character, excluding the character with ID 42 * } * * if ( is_last_webcomic( false, false, '', 'webcomic42' ) ) { * // this is the last webcomic in collection 42 * } * </code> * * @package Webcomic * @param mixed $in_same_term Whether the relative webcomic should be in a same term. May also be an array or comma-separated list of inclusive term IDs. * @param mixed $excluded_terms An array or comma-separated list of excluded term IDs. * @param string $taxonomy The taxonomy of the terms specified with $in_same_term and $excluded_terms arguments. The shorthand 'storyline' or 'character' may be used. * @param string $collection The collection to compare from. Used when comparing outside of the loop. * @return boolean * @uses WebcomicTag::is_relative_webcomic() */ function is_last_webcomic($in_same_term = false, $excluded_terms = false, $taxonomy = 'storyline', $collection = '') { return WebcomicTag::is_relative_webcomic('last', $in_same_term, $excluded_terms, $taxonomy, $collection); }