Definition:
function get_comment_author_url( $comment_ID = 0 ) {}
Retrieve the url of the author of the current comment.
Parameters
- int $comment_ID: The ID of the comment for which to get the author’s URL. Optional.
Defined filters
- get_comment_author_url
apply_filters('get_comment_author_url', $url)
Source code
function get_comment_author_url( $comment_ID = 0 ) {
$comment = get_comment( $comment_ID );
$url = ('http://' == $comment->comment_author_url) ? '' : $comment->comment_author_url;
$url = esc_url( $url, array('http', 'https') );
return apply_filters('get_comment_author_url', $url);
}
1302

February 12, 2011 


No comments yet... Be the first to leave a reply!