SLP_Power_Category_Walker_Legend
extends Walker_Category
in package
Admin and public UI rendering for categories, generating HTML for lists of categories.
Extend the built-in WordPress category walker to create a custom list of icons.
Table of Contents
Properties
Methods
- start_el() : mixed
- Start of the listing, usually in an HTML dom element.
- create_CategoryDetails() : array<string|int, object>
- Create the extended category details array.
Properties
$addon
public
mixed
$addon
$slplus
public
mixed
$slplus
Methods
start_el()
Start of the listing, usually in an HTML dom element.
public
final 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
-
Category data object.
- $depth : int = 0
-
Depth of category in reference to parents.
- $args : array<string|int, mixed> = array()
- $id : int = 0
Tags
create_CategoryDetails()
Create the extended category details array.
private
create_CategoryDetails(int $category) : array<string|int, object>
Parameters
- $category : int