Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




post_comments_feed_link [ WordPress Function ]

post_comments_feed_link ( $link_text = '', $post_id = '', $feed = '' )
Parameters:
  • (string) $link_text Descriptive text.
  • (int) $post_id Optional post ID. Default to current post.
  • (string) $feed Optional. Feed format.
Returns:
  • (string) Link to the comment feed for the current post.
Defined at:



Display 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.

Source


<?php
function post_comments_feed_link$link_text ''$post_id ''$feed '' ) {
    
$url get_post_comments_feed_link($post_id$feed);
    if ( empty(
$link_text) )
        
$link_text __('Comments Feed');

    echo 
apply_filters'post_comments_feed_link_html'"<a href='$url'>$link_text</a>"$post_id$feed );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics