Navigation_Menu implements Registerable, Standard_Service

Navigation Menu Visiblity Handler

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

nav_menu_item_classes()  : array<string|int, mixed>
Fix active class in nav for wholesale store page.
protect_list_pages()  : array<string|int, mixed>
Hide pages from list_pages based on wholesale status.
protect_nav_menus()  : array<string|int, mixed>
Hide pages from WP nave menus based on wholesale status.
register()  : mixed
{@inheritdoc}

Methods

nav_menu_item_classes()

Fix active class in nav for wholesale store page.

public nav_menu_item_classes(array<string|int, mixed> $menu_items) : array<string|int, mixed>
Parameters
$menu_items : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

$menu_items

protect_list_pages()

Hide pages from list_pages based on wholesale status.

public protect_list_pages(array<string|int, mixed> $excludes) : array<string|int, mixed>
Parameters
$excludes : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

protect_nav_menus()

Hide pages from WP nave menus based on wholesale status.

public protect_nav_menus(array<string|int, mixed> $menu_items) : array<string|int, mixed>
Parameters
$menu_items : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

Search results