AbstractCustomPage
in package
Tags
Table of Contents
- $capability : string
- $id : string
- $menuIcon : string
- $menuTitle : string
- $name : string
- $pageTitle : string
- $parentMenu : string
- $position : int
- $screenId : string
- __construct() : mixed
- __get() : mixed|null
- addActions() : mixed
- addMenu() : mixed
- display() : mixed
- getId() : string
- getUrl() : string
- isCurrentPage() : bool
- <b>Note:</b> use the method after 'admin_init' hook ('current_screen' for example).
- load() : mixed
- maybeEnqueueScripts() : mixed
- enqueueScripts() : mixed
- getDefaults() : array<string|int, mixed>
- getMenuTitle() : string
- getPageTitle() : string
Properties
$capability
protected
string
$capability
Tags
$id
protected
string
$id
Tags
$menuIcon
protected
string
$menuIcon
Tags
$menuTitle
protected
string
$menuTitle
Tags
$name
protected
string
$name
Tags
$pageTitle
protected
string
$pageTitle
Tags
$parentMenu
protected
string
$parentMenu
Tags
$position
protected
int
$position
Tags
$screenId
protected
string
$screenId
Tags
Methods
__construct()
public
__construct(string $name[, array<string|int, mixed> $args = array() ]) : mixed
Parameters
- $name : string
- $args : array<string|int, mixed> = array()
-
Optional.
Tags
Return values
mixed —__get()
public
__get(string $name) : mixed|null
Parameters
- $name : string
Tags
Return values
mixed|null —addActions()
public
addActions() : mixed
Tags
Return values
mixed —addMenu()
public
addMenu() : mixed
Tags
Return values
mixed —display()
public
abstract display() : mixed
Tags
Return values
mixed —getId()
public
getId() : string
Tags
Return values
string —getUrl()
public
getUrl([array<string|int, mixed> $additionalArgs = array() ]) : string
Parameters
- $additionalArgs : array<string|int, mixed> = array()
-
Optional.
Tags
Return values
string —isCurrentPage()
<b>Note:</b> use the method after 'admin_init' hook ('current_screen' for example).
public
isCurrentPage() : bool
Tags
Return values
bool —load()
public
load() : mixed
Tags
Return values
mixed —maybeEnqueueScripts()
public
maybeEnqueueScripts() : mixed
Tags
Return values
mixed —enqueueScripts()
protected
enqueueScripts() : mixed
Tags
Return values
mixed —getDefaults()
protected
getDefaults() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getMenuTitle()
protected
abstract getMenuTitle() : string
Tags
Return values
string —getPageTitle()
protected
abstract getPageTitle() : string