Walker_Comment::ping( WP_Comment $comment, int $depth, array $args )

Outputs a pingback comment.

Description

See also

Parameters

$commentWP_Commentrequired
The comment object.
$depthintrequired
Depth of the current comment.
$argsarrayrequired
An array of arguments.

Source

protected function ping( $comment, $depth, $args ) {
	$tag = ( 'div' === $args['style'] ) ? 'div' : 'li';
	?>
	<<?php echo $tag; ?> id="comment-<?php comment_ID(); ?>" <?php comment_class( '', $comment ); ?>>
		<div class="comment-body">
			<?php _e( 'Pingback:' ); ?> <?php comment_author_link( $comment ); ?> <?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?>
		</div>
	<?php
}

Changelog

VersionDescription
3.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.