WordPress at a glance
function is not described

Walker_Comment::ping() protected WP 3.6.0

Outputs a pingback comment.

{} It's a method of the class: Walker_Comment{}

No Hooks.

Return

Null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->ping( $comment, $depth, $args );
$comment(WP_Comment) (required)
The comment object.
$depth(int) (required)
Depth of the current comment.
$args(array) (required)
An array of arguments.

Notes

  • See: wp_list_comments()

Changelog

Since 3.6.0 Introduced.

Code of Walker_Comment::ping() WP 5.5.1

<?php
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
}