SLP_Premier_Category_Walker_Checklist
extends Walker
in package
Category Walker
Table of Contents
Properties
- $db_fields : mixed
- $tree_type : mixed
Methods
- end_el() : mixed
- Ends the element output, if needed.
- end_lvl() : mixed
- Ends the list of after the elements are added.
- start_el() : mixed
- Start the element output.
- start_lvl() : mixed
- Starts the list before the elements are added.
- walk() : string|void
- Walk the walk.
- get_icon() : string
- Get the icon.
Properties
$db_fields
public
mixed
$db_fields
= array('parent' => 'parent', 'id' => 'term_id')
$tree_type
public
mixed
$tree_type
= 'category'
Methods
end_el()
Ends the element output, if needed.
public
end_el(string &$output, object $category[, int $depth = 0 ][, array<string|int, mixed> $args = array() ]) : mixed
Parameters
- $output : string
-
Passed by reference. Used to append additional content.
- $category : object
-
The current term object.
- $depth : int = 0
-
Depth of the term in reference to parents. Default 0.
- $args : array<string|int, mixed> = array()
-
An array of arguments. @see wp_terms_checklist()
Tags
end_lvl()
Ends the list of after the elements are added.
public
end_lvl(string &$output[, int $depth = 0 ][, array<string|int, mixed> $args = array() ]) : mixed
Parameters
- $output : string
-
Passed by reference. Used to append additional content.
- $depth : int = 0
-
Depth of category. Used for tab indentation.
- $args : array<string|int, mixed> = array()
-
An array of arguments. @see wp_terms_checklist()
Tags
start_el()
Start the element output.
public
start_el(string &$output, object $category[, int $depth = 0 ][, array<string|int, mixed> $args = array() ][, int $id = 0 ]) : mixed
Parameters
- $output : string
-
Passed by reference. Used to append additional content.
- $category : object
-
The current term object.
- $depth : int = 0
-
Depth of the term in reference to parents. Default 0.
- $args : array<string|int, mixed> = array()
-
An array of arguments. @see wp_terms_checklist()
- $id : int = 0
-
ID of the current term.
Tags
start_lvl()
Starts the list before the elements are added.
public
start_lvl(string &$output[, int $depth = 0 ][, array<string|int, mixed> $args = array() ]) : mixed
Parameters
- $output : string
-
Passed by reference. Used to append additional content.
- $depth : int = 0
-
Depth of category. Used for tab indentation.
- $args : array<string|int, mixed> = array()
-
An array of arguments. @see wp_terms_checklist()
Tags
walk()
Walk the walk.
public
walk(array<string|int, mixed> $elements, int $max_depth, mixed ...$args) : string|void
..
Parameters
- $elements : array<string|int, mixed>
- $max_depth : int
- $args : mixed
Return values
string|voidget_icon()
Get the icon.
private
get_icon(int $term_id) : string
Parameters
- $term_id : int