wpseek.com
				Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
			get_comments_link › WordPress Function
Seit1.5.0
Veraltetn/v
› get_comments_link ( $post = 0 )
| Parameter: | 
 | 
| Gibt zurück: | 
 | 
| Definiert in: | 
 | 
| Codex: | 
Retrieves the link to the current post comments.
Ähnliche Funktionen: get_comment_link, next_comments_link, edit_comment_link, comments_link, get_next_comments_link
	Quellcode
function get_comments_link( $post = 0 ) {
	$hash          = get_comments_number( $post ) ? '#comments' : '#respond';
	$comments_link = get_permalink( $post ) . $hash;
	/**
	 * Filters the returned post comments permalink.
	 *
	 * @since 3.6.0
	 *
	 * @param string      $comments_link Post comments permalink with '#comments' appended.
	 * @param int|WP_Post $post          Post ID or WP_Post object.
	 */
	return apply_filters( 'get_comments_link', $comments_link, $post );
}