Store Locator Plus®

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

$addon  : mixed
$slplus  : mixed

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

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
see
Walker_Category::start_el()
uses
SLPPower::create_LocationIcons
used-by

\SLP_Power_UI::create_string_legend_html

create_CategoryDetails()

Create the extended category details array.

private create_CategoryDetails(int $category) : array<string|int, object>
Parameters
$category : int
Return values
array<string|int, object>

        
On this page

Search results