Properties

$subPages

$subPages : array

Public static varable to hold Subpages information.

Type

array

$instance

$instance : mixed

Protected static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

get_class_name()

get_class_name() : \MainWP\Dashboard\__CLASS__

Get Class Name

Returns

\MainWP\Dashboard\__CLASS__

get_instance()

get_instance() : mixed

Return the single instance of the class.

Returns

mixed —

$instance The single instance of the class.

init()

init() 

Instantiate Hooks for the REST API Page.

admin_init()

admin_init() 

Run the export_sites method that exports the Child Sites .csv file

init_menu()

init_menu() 

Instantiate the REST API Menu.

init_subpages_menu()

init_subpages_menu() 

Instantiate REST API SubPages Menu.

init_left_menu()

init_left_menu(array  $subPages = array()) 

Instantiate left menu

REST API Page & SubPage link data.

Parameters

array $subPages

SubPages Array.

handle_rest_api_add_new()

handle_rest_api_add_new() 

Method handle_rest_api_add_new()

Handle rest api settings

handle_rest_api_edit()

handle_rest_api_edit() 

Method handle_rest_api_edit()

Handle rest api settings

ajax_rest_api_remove_keys()

ajax_rest_api_remove_keys() 

Method ajax_rest_api_remove_keys()

Remove API Key.

render_header()

render_header(string  $shownPage = '') 

Render Page Header.

Parameters

string $shownPage

The page slug shown at this moment.

render_footer()

render_footer() 

Close the HTML container.

render_all_api_keys()

render_all_api_keys() 

Render REST API SubPage

render_table_top()

render_table_top() 

Render table top.

check_rest_api_updates()

check_rest_api_updates() 

Method check_rest_api_updates().

To Checks for updating REST API keys.

show_messages()

show_messages() 

Method show_messages().

Show actions messages.

render_rest_api_setings()

render_rest_api_setings() 

Render REST API SubPage

mainwp_generate_rand_hash()

mainwp_generate_rand_hash() : string

Method mainwp_generate_rand_hash()

Generates a random hash to be used when generating the consumer key and secret.

Returns

string —

Returns random string.

render_rest_api_edit()

render_rest_api_edit(string  $keyid, array  $item) 

Method render_rest_api_edit().

Render REST API edit screen.

Parameters

string $keyid

Key ID edit.

array $item

The Key edit.

check_rest_api_enabled()

check_rest_api_enabled(boolean  $check_logged_in = false) : boolean

Method check_rest_api_enabled().

Parameters

boolean $check_logged_in

check for logged in user or not.

Returns

boolean —

check result.