MySLP_Categry_Walker
extends Walker_Category
in package
The data interface helper.
Extends /wp-includes/category-template.php Walker_Category class.
Tags
Table of Contents
Properties
- $parent : object
- The parent object.
Methods
- __construct() : mixed
- Create the Walker object.
- start_el() : mixed
- createstring_CategoryEditLink() : mixed
- Convert string to href link
Properties
$parent
The parent object.
private
object
$parent
Methods
__construct()
Create the Walker object.
public
__construct(array<string|int, mixed> $params) : mixed
Allows or passing of parent property.
Parameters
- $params : array<string|int, mixed>
start_el()
public
start_el(string &$output, object $category[, int $depth = 0 ][, array<string|int, mixed> $args = array() ][, mixed $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 : mixed = 0
Tags
createstring_CategoryEditLink()
Convert string to href link
private
createstring_CategoryEditLink(mixed $category_id, mixed $html) : mixed
Parameters
- $category_id : mixed
- $html : mixed