\Barn2\Plugin\WC_Protected_CategoriesCategory_Prefixer

Responsible for prefixing the names of protected and private categories.

Summary

Methods
Properties
Constants
register()
prefix_category_title()
prefix_category_menu_items()
prefix_category_breadcrumb()
prefix_category()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

register()

register()

prefix_category_title()

prefix_category_title(  $term_title)

Parameters

$term_title

prefix_category_menu_items()

prefix_category_menu_items(  $menu_items,  $menu,  $args)

Parameters

$menu_items
$menu
$args

prefix_category_breadcrumb()

prefix_category_breadcrumb(  $breadcrumb): array

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

Parameters

$breadcrumb

Returns

array —

The updated breadcrumb trail

prefix_category()

prefix_category(  $term_title,  $term_id = false)

Parameters

$term_title
$term_id