Menu implements Registerable, Service

Handles the custom menu

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Service

Table of Contents

$license  : mixed
__construct()  : mixed
Constructor.
add_menu_pages()  : void
Registers our custom menu and sub menu pages.
highlight_submenus()  : string
Highlight submenu pages.
keep_menu_open()  : string
Need to make sure the Documents menu stays open when we are on a taxonomy page
register()  : mixed
{@inheritdoc}
remove_submenu_link()  : mixed
Hide the Import CSV sub menu link
get_all_taxonomies()  : array<string|int, string>
Retrieves all taxonomies registered to the post type for display.
get_custom_taxonomies()  : array<string|int, string>
Retrieves custom taxonomies not registered by DLP.

Properties

$license

private mixed $license
Tags

Methods

__construct()

Constructor.

public __construct(Plugin $plugin) : mixed
Parameters
$plugin : Plugin
Tags
Return values
mixed

add_menu_pages()

Registers our custom menu and sub menu pages.

public add_menu_pages() : void

Unactivated license only sees the Settings sub menu

Tags
Return values
void

highlight_submenus()

Highlight submenu pages.

public highlight_submenus(string $submenu_file) : string
Parameters
$submenu_file : string

The filename of the sub menu.

Tags
Return values
string

$submenu_file

keep_menu_open()

Need to make sure the Documents menu stays open when we are on a taxonomy page

public keep_menu_open(string $parent_file) : string
Parameters
$parent_file : string

The filename of the parent menu.

Tags
Return values
string

$parent_file

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

Hide the Import CSV sub menu link

public remove_submenu_link() : mixed
Tags
Return values
mixed

get_all_taxonomies()

Retrieves all taxonomies registered to the post type for display.

private get_all_taxonomies() : array<string|int, string>
Tags
Return values
array<string|int, string>

get_custom_taxonomies()

Retrieves custom taxonomies not registered by DLP.

private get_custom_taxonomies() : array<string|int, string>
Tags
Return values
array<string|int, string>

Search results