\jb\adminMenu

Class Menu

Summary

Methods
Properties
Constants
__construct()
add_pending_count()
menu()
remove_dashboard()
selected_menu()
change_parent_file()
change_submenu_file()
wrong_settings()
settings()
$slug
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$slug

$slug : string

Type

normal — Main Menu slug

Methods

__construct()

__construct() : mixed

Menu constructor.

Returns

mixed

add_pending_count()

add_pending_count() : mixed

Change label for admin menu item to show number of Job Listing items pending approval.

Returns

mixed

menu()

menu() : mixed

Add admin menus

Returns

mixed

remove_dashboard()

remove_dashboard(string  $submenu_file) : string

Hide first submenu and replace to Jobs

Parameters

string $submenu_file

Returns

string

selected_menu()

selected_menu(array  $classes) : array

Made selected Job Board menu on Add/Edit CPT and Term Taxonomies

Parameters

array $classes

Returns

array

change_parent_file()

change_parent_file() : string

Return admin submenu variable for display pages

Returns

string

change_submenu_file()

change_submenu_file(string  $submenu_file, string  $parent_file) : string

Return admin submenu variable for display pages

Parameters

string $submenu_file
string $parent_file

Returns

string

wrong_settings()

wrong_settings() : mixed

Handle redirect if wrong settings tab is open

Returns

mixed

settings()

settings() : mixed

Settings page callback

Returns

mixed