Walker_Comment::ping()
最后更新于:2021-11-26 06:24:05
Walker_Comment::ping( GC_Comment$comment, int$depth, array$args)Outputs a pingback comment.
参数
- $comment
-
(GC_Comment) (Required) The comment object.
- $depth
-
(int) (Required) Depth of the current comment.
- $args
-
(array) (Required) An array of arguments.
源文件
文件: gc-includes/class-walker-comment.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
}