Menu implements Registerable, Standard_Service
Handles the custom menu
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- 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.
Methods
add_menu_pages()
Registers our custom menu and sub menu pages.
public
add_menu_pages() : void
Unactivated license only sees the Settings sub menu
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.
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.
Return values
string —$parent_file
register()
{@inheritdoc}
public
register() : mixed
Return values
mixed —remove_submenu_link()
Hide the Import CSV sub menu link
public
remove_submenu_link() : mixed
Return values
mixed —get_all_taxonomies()
Retrieves all taxonomies registered to the post type for display.
private
get_all_taxonomies() : array<string|int, string>
Return values
array<string|int, string> —get_custom_taxonomies()
Retrieves custom taxonomies not registered by DLP.
private
get_custom_taxonomies() : array<string|int, string>