wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
post_comments_feed_link › WordPress Function
Da2.5.0
Deprecaton/a
› post_comments_feed_link ( $link_text = '', $post_id = 0, $feed = '' )
| Parametri: (3) |
|
| Definito a: |
|
| Codex: |
Displays the comment feed link for a post.
Prints out the comment feed link for a post. Link text is placed in the anchor. If no link text is specified, default text is used. If no post ID is specified, the current post is used.Funzioni correlate: get_post_comments_feed_link, get_search_comments_feed_link, previous_comments_link, get_comments_link, is_comment_feed
Sorgenti
function post_comments_feed_link( $link_text = '', $post_id = 0, $feed = '' ) {
$url = get_post_comments_feed_link( $post_id, $feed );
if ( empty( $link_text ) ) {
$link_text = __( 'Comments Feed' );
}
$link = '<a href="' . esc_url( $url ) . '">' . $link_text . '</a>';
/**
* Filters the post comment feed link anchor tag.
*
* @since 2.8.0
*
* @param string $link The complete anchor tag for the comment feed link.
* @param int $post_id Post ID.
* @param string $feed The feed type. Possible values include 'rss2', 'atom',
* or an empty string for the default feed type.
*/
echo apply_filters( 'post_comments_feed_link_html', $link, $post_id, $feed );
}