ExtensionsPage extends AbstractCustomPage
in package

Tags
since
1.16.0

Table of Contents

REQUEST_URL  = 'https://motopress.com/edd-api/v2/products/?category=appointment-booking-addons'
$capability  : string
$id  : string
$menuIcon  : string
$menuTitle  : string
$name  : string
$pageTitle  : string
$parentMenu  : string
$position  : int
$products  : array<string|int, mixed>
$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
loadProducts()  : array<string|int, mixed>|false
parseProducts()  : array<string|int, mixed>|false
requestProducts()  : array<string|int, stdClass>|false

Constants

REQUEST_URL

public mixed REQUEST_URL = 'https://motopress.com/edd-api/v2/products/?category=appointment-booking-addons'

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

$products

protected array<string|int, mixed> $products = array()

$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 display() : mixed
Tags
access

protected

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
Return values
mixed

maybeEnqueueScripts()

public maybeEnqueueScripts() : mixed
Tags
access

protected

since
1.1.0
Return values
mixed

enqueueScripts()

protected enqueueScripts() : mixed
Return values
mixed

getDefaults()

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

getMenuTitle()

protected getMenuTitle() : string
Return values
string

getPageTitle()

protected getPageTitle() : string
Return values
string

loadProducts()

protected loadProducts() : array<string|int, mixed>|false
Return values
array<string|int, mixed>|false

parseProducts()

protected parseProducts(array<string|int, stdClass>|false $apiProducts) : array<string|int, mixed>|false
Parameters
$apiProducts : array<string|int, stdClass>|false
Return values
array<string|int, mixed>|false

requestProducts()

protected requestProducts() : array<string|int, stdClass>|false
Return values
array<string|int, stdClass>|false

Search results