get_comment_author_rss

Definition:
function get_comment_author_rss() {}

Retrieve the current comment author for use in the feeds.

Return values

returns:Comment Author

Defined filters

  • comment_author_rss
    apply_filters('comment_author_rss', get_comment_author()

Source code

function get_comment_author_rss() {

	return apply_filters('comment_author_rss', get_comment_author() );

}

1300

get_comment_author_link

Definition:
function get_comment_author_link( $comment_ID = 0 ) {}

Retrieve the html link to 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 link. Optional.

Return values

returns:Comment Author name or HTML link for author’s URL

Defined filters

  • get_comment_author_link
    apply_filters('get_comment_author_link', $return)

Source code

function get_comment_author_link( $comment_ID = 0 ) {

	/** @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);

}

1298

get_comment_author_IP

Definition:
function get_comment_author_IP( $comment_ID = 0 ) {}

Retrieve the IP address of the author of the current comment.

Parameters

  • int $comment_ID: The ID of the comment for which to get the author’s IP address. Optional.

Return values

returns:The comment author’s IP address.

Defined filters

  • get_comment_author_IP
    apply_filters('get_comment_author_IP', $comment->comment_author_IP)

Source code

function get_comment_author_IP( $comment_ID = 0 ) {

	$comment = get_comment( $comment_ID );

	return apply_filters('get_comment_author_IP', $comment->comment_author_IP);

}

1296

get_comment_author_email_link

Definition:
function get_comment_author_email_link($linktext='', $before='', $after='') {}

Return the html email link to the author of the current comment.
Care should be taken to protect the email address and assure that email harvesters do not capture your commentors’ email address. Most assume that their email address will not appear in raw form on the blog. Doing so will enable anyone, including those that people don’t want to get the email address and use it for their own means good and bad.

Parameters

  • string $linktext: The text to display instead of the comment author’s email address
  • string $before: The text or HTML to display before the email link.
  • string $after: The text or HTML to display after the email link.

Defined filters

  • comment_email
    apply_filters('comment_email', $comment->comment_author_email)

Source code

function get_comment_author_email_link($linktext='', $before='', $after='') {

	global $comment;

	$email = apply_filters('comment_email', $comment->comment_author_email);

	if ((!empty($email)) && ($email != '@')) {

	$display = ($linktext != '') ? $linktext : $email;

		$return  = $before;

		$return .= "<a href='mailto:$email'>$display</a>";

	 	$return .= $after;

		return $return;

	} else {

		return '';

	}

}

1294

get_comment_author_email

Definition:
function get_comment_author_email( $comment_ID = 0 ) {}

Retrieve the email of the author of the current comment.

Parameters

  • int $comment_ID: The ID of the comment for which to get the author’s email. Optional.

Return values

returns:The current comment author’s email

Defined filters

  • get_comment_author_email
    apply_filters('get_comment_author_email', $comment->comment_author_email)

Source code

function get_comment_author_email( $comment_ID = 0 ) {

	$comment = get_comment( $comment_ID );

	return apply_filters('get_comment_author_email', $comment->comment_author_email);

}

1292