comment_ID

Definition:
function comment_ID() {}

Displays the comment id of the current comment.

Source code

function comment_ID() {

	echo get_comment_ID();

}

693

comment_guid

Definition:
function comment_guid($comment_id = null) {}

Display the feed GUID for the current comment.

Parameters

  • int|object $comment_id: Optional comment object or id. Defaults to global comment object.

Source code

function comment_guid($comment_id = null) {

	echo esc_url( get_comment_guid($comment_id) );

}

691

comment_form_title

Definition:
function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = TRUE ) {}

Display text based on comment reply status. Only affects users with Javascript disabled.

Parameters

  • string $noreplytext: Optional. Text to display when not replying to a comment.
  • string $replytext: Optional. Text to display when replying to a comment. Accepts “%s” for the author of the comment being replied to.
  • string $linktoparent: Optional. Boolean to control making the author’s name a link to their comment.

Source code

function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = TRUE ) {

	global $comment;



	if ( false === $noreplytext ) $noreplytext = __( 'Leave a Reply' );

	if ( false === $replytext ) $replytext = __( 'Leave a Reply to %s' );



	$replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;



	if ( 0 == $replytoid )

		echo $noreplytext;

	else {

		$comment = get_comment($replytoid);

		$author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author() . '</a>' : get_comment_author();

		printf( $replytext, $author );

	}

}

689

comment_footer_die

Definition:
function comment_footer_die( $msg ) {}

Display error message at bottom of comments.

Parameters

  • string $msg: Error Message. Assumed to contain HTML and be sanitized.

Source code

function comment_footer_die( $msg ) {

	echo "<div class='wrap'><p>$msg</p></div>";

	include('./admin-footer.php');

	die;

}

685