SettingsPage
extends AbstractCustomPage
in package
Tags
Table of Contents
- $capability : string
- $currentSection : string|null
- Don't access directly. This is a cache field. Use getCurrentSection() instead.
- $currentTab : string|null
- Don't access directly. This is a cache field. Use getCurrentTab() instead.
- $fields : array<string|int, AbstractField>
- $id : string
- $menuIcon : string
- $menuTitle : string
- $name : string
- $pageTitle : string
- $parentMenu : string
- $position : int
- $saved : bool
- $screenId : string
- __construct() : mixed
- __get() : mixed|null
- addActions() : mixed
- addMenu() : mixed
- display() : mixed
- enqueueScripts() : mixed
- getCurrentSection() : string
- getCurrentTab() : string
- getFields() : array<string|int, 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
- canSave() : bool
- getDefaults() : array<string|int, mixed>
- getMenuTitle() : string
- getPageTitle() : string
- maybeSave() : mixed
- parseRequest() : array<string|int, mixed>
- renderForm() : string
- renderNotice() : string
- renderTabs() : string
Properties
$capability
protected
string
$capability
Tags
$currentSection
Don't access directly. This is a cache field. Use getCurrentSection() instead.
protected
string|null
$currentSection
= null
Tags
$currentTab
Don't access directly. This is a cache field. Use getCurrentTab() instead.
protected
string|null
$currentTab
= null
Tags
$fields
protected
array<string|int, AbstractField>
$fields
= array()
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
$saved
protected
bool
$saved
= false
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
display() : mixed
Tags
Return values
mixed —enqueueScripts()
public
enqueueScripts() : mixed
Tags
Return values
mixed —getCurrentSection()
public
getCurrentSection() : string
Tags
Return values
string —getCurrentTab()
public
getCurrentTab() : string
Tags
Return values
string —getFields()
public
getFields([string $tab = '' ][, string $section = '' ]) : array<string|int, mixed>
Parameters
- $tab : string = ''
-
Optional. Current tab by default.
- $section : string = ''
-
Optional. No section by default.
Tags
Return values
array<string|int, 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 —canSave()
protected
canSave() : bool
Tags
Return values
bool —getDefaults()
protected
getDefaults() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getMenuTitle()
protected
getMenuTitle() : string
Tags
Return values
string —getPageTitle()
protected
getPageTitle() : string
Tags
Return values
string —maybeSave()
protected
maybeSave() : mixed
Tags
Return values
mixed —parseRequest()
protected
parseRequest() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —Values to save: [Option name => New value].
renderForm()
protected
renderForm() : string
Tags
Return values
string —renderNotice()
protected
renderNotice() : string
Tags
Return values
string —renderTabs()
protected
renderTabs() : string