WPDev.one
Core Class

Walker_Comment

class Walker_Comment // Constructor: function Object() { [native code] }

Core walker class used to create an HTML list of comments.

Methods 9 methods

Method / Return Description
start_lvl()
void

Starts the list before the elements are added.

Parameters: $output: mixed, $depth: mixed, $args: mixed
end_lvl()
void

Ends the list of items after the elements are added.

Parameters: $output: mixed, $depth: mixed, $args: mixed
display_element()
void

Traverses elements to create list from elements.

Parameters: $element: mixed, $children_elements: mixed, $max_depth: mixed, $depth: mixed, $args: mixed, $output: mixed
start_el()
void

Starts the element output.

Parameters: $output: mixed, $data_object: mixed, $depth: mixed, $args: mixed, $current_object_id: mixed
end_el()
void

Ends the element output, if needed.

Parameters: $output: mixed, $data_object: mixed, $depth: mixed, $args: mixed
ping()
void

Outputs a pingback comment.

Parameters: $comment: mixed, $depth: mixed, $args: mixed
filter_comment_text()
string

Filters the comment text.

Parameters: $comment_text: mixed, $comment: mixed
comment()
void

Outputs a single comment.

Parameters: $comment: mixed, $depth: mixed, $args: mixed
html5_comment()
void

Outputs a comment in the HTML5 format.

Parameters: $comment: mixed, $depth: mixed, $args: mixed

Properties

Property / Type Description
$tree_type
mixed
public
No description available.
$db_fields
mixed
public
No description available.

Class Information

Since Version
2.7.0
Source File
wp-includes/class-walker-comment.php
Advertisement