Switch language

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




get_comment_author_link [ WordPress Function ]

get_comment_author_link ( $comment_ID = 0 )
Parameters:
  • (int) $comment_ID The ID of the comment for which to get the author's link. Optional.
Uses:
Returns:
  • (string) Comment Author name or HTML link for author's URL
Defined at:



Retrieve the html link to the url of the author of the current comment.

Source


<?php
function get_comment_author_link$comment_ID ) {
    
/** @todo Only call these functions when they are needed. Include in if... else blocks */
    
$url    get_comment_author_url$comment_ID );
    
$author get_comment_author$comment_ID );

    if ( empty( 
$url ) || 'http://' == $url )
        
$return $author;
    else
        
$return "<a href='$url' rel='external nofollow' class='url'>$author</a>";
    return 
apply_filters('get_comment_author_link'$return);
}
?>

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