\MainWP\ChildMainWP_Pages

Class MainWP_Pages

Manage the MainWP Child plugin pages.

Summary

Methods
Properties
Constants
get_class_name()
__construct()
get_instance()
init()
admin_notice()
admin_menu()
plugin_row_meta()
render_pages()
render_header()
render_footer()
admin_head()
render_settings()
$subPages
$subPagesLoaded
$brandingTitle
No constants found
No protected methods found
$instance
N/A
init_pages()
No private properties found
N/A

Properties

$subPages

$subPages : array

Public static variable containing the sub-pages array.

Type

array — Subpages array.

$subPagesLoaded

$subPagesLoaded : boolean

Public statis variable to determine whether or not MainWP Child Plugin subpages should be loaded. Default: false.

Type

boolean — true|false.

$brandingTitle

$brandingTitle : string

Public statis variable to contain custom branding title.

Type

string — Branding title.

$instance

$instance : mixed

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

Type

mixed — Default null

Methods

get_class_name()

get_class_name() : string

Method get_class_name()

Get class name.

Returns

string —

CLASS Class name.

__construct()

__construct() 

MainWP_Pages constructor.

Run any time class is called.

get_instance()

get_instance() : mixed

Method get_instance()

Create a public static instance.

Returns

mixed —

Class instance.

init()

init() 

Initiate actions and filters.

admin_notice()

admin_notice() 

Show disconnected admin notice.

Show the Warning notice in case the site is not connected to MainWP Dashboard.

admin_menu()

admin_menu() 

Add and remove Admin Menu Items dependant upon Branding settings.

plugin_row_meta()

plugin_row_meta(array  $plugin_meta, string  $plugin_file) : mixed

MainWP Child Plugin meta data.

Parameters

array $plugin_meta

Plugin meta.

string $plugin_file

Plugin file.

Returns

mixed —

The filtered value after all hooked functions are applied to it.

render_header()

render_header(string  $shownPage, boolean  $subpage = true, boolean  $show_clone_funcs = true) 

Render page header.

Parameters

string $shownPage

Page shown.

boolean $subpage

Whether or not a subpage. Default: true.

boolean $show_clone_funcs

Whether or not to show clone tabs.

render_footer()

render_footer() 

Render page footer.

admin_head()

admin_head() 

Render admin header.

render_settings()

render_settings() 

Render connection settings sub page.

init_pages()

init_pages(string  $child_menu_title, string  $child_page_title) 

Initiate MainWP Child Plugin pages.

Parameters

string $child_menu_title

New MainWP Child Plugin title defined in branding settings.

string $child_page_title

New MainWP Child Plugin page title defined in branding settings.