AbstractCustomPage
in package

Tags
since
1.0

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
since
1.0

$id

protected string $id
Tags
since
1.0

$menuTitle

protected string $menuTitle
Tags
since
1.0

$name

protected string $name
Tags
since
1.0

$pageTitle

protected string $pageTitle
Tags
since
1.0

$parentMenu

protected string $parentMenu
Tags
since
1.0

$position

protected int $position
Tags
since
1.0

$screenId

protected string $screenId
Tags
since
1.0

Methods

__construct()

public __construct(string $name[, array<string|int, mixed> $args = array() ]) : mixed
Parameters
$name : string
$args : array<string|int, mixed> = array()

Optional.

Tags
since
1.0
todo

Add parent menu slug.

Return values
mixed

__get()

public __get(string $name) : mixed|null
Parameters
$name : string
Tags
since
1.0
Return values
mixed|null

addActions()

public addActions() : mixed
Tags
since
1.0
Return values
mixed

addMenu()

public addMenu() : mixed
Tags
access

protected

since
1.0
Return values
mixed

display()

public abstract display() : mixed
Tags
access

protected

since
1.0
Return values
mixed

getId()

public getId() : string
Tags
since
1.0
Return values
string

getUrl()

public getUrl([array<string|int, mixed> $additionalArgs = array() ]) : string
Parameters
$additionalArgs : array<string|int, mixed> = array()

Optional.

Tags
since
1.0
Return values
string

isCurrentPage()

<b>Note:</b> use the method after 'admin_init' hook ('current_screen' for example).

public isCurrentPage() : bool
Tags
since
1.0
Return values
bool

load()

public load() : mixed
Tags
access

protected

since
1.0
Return values
mixed

maybeEnqueueScripts()

public maybeEnqueueScripts() : mixed
Tags
access

protected

since
1.1.0
Return values
mixed

enqueueScripts()

protected enqueueScripts() : mixed
Tags
since
1.1.0
Return values
mixed

getDefaults()

protected getDefaults() : array<string|int, mixed>
Tags
since
1.0
Return values
array<string|int, mixed>

getMenuTitle()

protected abstract getMenuTitle() : string
Tags
since
1.0
Return values
string

getPageTitle()

protected abstract getPageTitle() : string
Tags
since
1.0
Return values
string

Search results