Store Locator Plus®

MySLP_Categry_Walker extends Walker_Category

The data interface helper.

Extends /wp-includes/category-template.php Walker_Category class.

Tags
copyright

2016 Charleston Software Associates, LLC

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

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
see
Walker::start_el()

This version adds the term ID to the output.

Convert string to href link

private createstring_CategoryEditLink(mixed $category_id, mixed $html) : mixed
Parameters
$category_id : mixed
$html : mixed
Tags
since
1.3.7

        
On this page

Search results