Walker_Comment::end_el()
最后更新于:2021-11-26 06:13:21
Walker_Comment::end_el( string$output, GC_Comment$comment, int$depth, array$args=array())Ends the element output, if needed.
参数
- $output
-
(string) (Required) Used to append additional content. Passed by reference.
- $comment
-
(GC_Comment) (Required) The current comment object. Default current comment.
- $depth
-
(int) (Optional) Depth of the current comment. Default 0.
- $args
-
(array) (Optional) An array of arguments.
Default value: array()
源文件
文件: gc-includes/class-walker-comment.php
public function end_el( &$output, $comment, $depth = 0, $args = array() ) {
if ( ! empty( $args['end-callback'] ) ) {
ob_start();
call_user_func( $args['end-callback'], $comment, $args, $depth );
$output .= ob_get_clean();
return;
}
if ( 'div' === $args['style'] ) {
$output .= "</div><!-- #comment-## -->n";
} else {
$output .= "</li><!-- #comment-## -->n";
}
}