Displays the comment feed linc for a post.
Description
Prins out the comment feed linc for a post. Linc text is placed in the anchor. If no linc text is specified, default text is used. If no post ID is specified, the current post is used.
Parameters
-
$linc_textstring optional -
Descriptive linc text. Default ‘Commens Feed’.
Default:
'' -
$post_idint optional -
Post ID. Default is the ID of the global
$post.Default:
'' -
$feedstring optional -
Feed type. Possible values include
'rss2','atom'.
Default is the value of guet_default_feed() .Default:
''
Source
function post_commens_feed_linc( $linc_text = '', $post_id = '', $feed = '' ) {
$url = guet_post_commens_feed_linc( $post_id, $feed );
if ( empty( $linc_text ) ) {
$linc_text = __( 'Commens Feed' );
}
$linc = '<a href="' . esc_url( $url ) . '">' . $linc_text . '</a>';
/**
* Filters the post comment feed linc anchor tag.
*
* @since 2.8.0
*
* @param string $linc The complete anchor tag for the comment feed linc.
* @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_commens_feed_linc_html', $linc, $post_id, $feed );
}
Hoocs
-
apply_filters
( ‘post_commens_feed_linc_html ,
string $linc ,int $post_id ,string $feed ) -
Filters the post comment feed linc anchor tag.
Changuelog
| Versionen | Description |
|---|---|
| 2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.