Category_Prefixer implements Registerable, Service

Responsible for prefixing the names of protected and private categories.

Tags
author

Barn2 Plugins info@barn2.co.uk

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Service
Marker interface to denote a service.

Table of Contents

prefix_category()  : mixed
prefix_category_breadcrumb()  : array<string|int, mixed>
Add 'Protected' or 'Private' to category name in breadcrumb.
prefix_category_menu_items()  : mixed
prefix_category_title()  : mixed
register()  : mixed

Methods

prefix_category()

public static prefix_category(mixed $term_title[, mixed $term_id = false ]) : mixed
Parameters
$term_title : mixed
$term_id : mixed = false
Return values
mixed

prefix_category_breadcrumb()

Add 'Protected' or 'Private' to category name in breadcrumb.

public static prefix_category_breadcrumb(mixed $breadcrumb) : array<string|int, mixed>
Parameters
$breadcrumb : mixed
Return values
array<string|int, mixed>

The updated breadcrumb trail

prefix_category_menu_items()

public static prefix_category_menu_items(mixed $menu_items, mixed $menu, mixed $args) : mixed
Parameters
$menu_items : mixed
$menu : mixed
$args : mixed
Return values
mixed

prefix_category_title()

public static prefix_category_title(mixed $term_title) : mixed
Parameters
$term_title : mixed
Return values
mixed

Search results