PaymentCPT extends EditableCPT
in package

Table of Contents

$capability  : string
$editPage  : EditCPTPage
$fieldGroups  : array<string|int, MetaBoxGroup>
$managePage  : ManageCPTPage
$postType  : mixed
$statuses  : mixed
__construct()  : mixed
addBackButton()  : mixed
getCapabilityType()  : array<string|int, mixed>
Create an array of capability types depending on a post type name.
getEditPage()  : EditCPTPage
getFieldGroups()  : array<string|int, MetaBoxGroup>
getManagePage()  : ManageCPTPage
getMenuSlug()  : mixed
getPostType()  : mixed
initEditPage()  : mixed
initManagePage()  : mixed
isCurrentEditPage()  : mixed
parent_file()  : mixed
Set correct active/current menu and submenu in the WordPress Admin menu
register()  : mixed
registerMetaBoxes()  : mixed
statuses()  : Statuses
addActions()  : mixed
createEditPage()  : EditCPTPage
createManagePage()  : ManageCPTPage
detectCustomFieldsDefaults()  : array<string|int, mixed>
retrieveDefaultsFromBooking()  : array<string|int, mixed>

Properties

$capability

protected string $capability = 'edit_post'

$editPage

protected EditCPTPage $editPage

$fieldGroups

protected array<string|int, MetaBoxGroup> $fieldGroups = array()

$managePage

protected ManageCPTPage $managePage

$postType

protected mixed $postType = 'mphb_payment'

$statuses

protected mixed $statuses

Methods

__construct()

public __construct() : mixed
Return values
mixed

addBackButton()

public addBackButton() : mixed
Return values
mixed

getCapabilityType()

Create an array of capability types depending on a post type name.

public getCapabilityType() : array<string|int, mixed>
Tags
since
4.0.0
Return values
array<string|int, mixed>

getEditPage()

public getEditPage() : EditCPTPage
Return values
EditCPTPage

getFieldGroups()

public getFieldGroups() : array<string|int, MetaBoxGroup>
Return values
array<string|int, MetaBoxGroup>

getManagePage()

public getManagePage() : ManageCPTPage
Return values
ManageCPTPage

getMenuSlug()

public getMenuSlug() : mixed
Return values
mixed

getPostType()

public getPostType() : mixed
Return values
mixed

initEditPage()

public initEditPage() : mixed
Return values
mixed

initManagePage()

public initManagePage() : mixed
Return values
mixed

isCurrentEditPage()

public isCurrentEditPage() : mixed
Return values
mixed

parent_file()

Set correct active/current menu and submenu in the WordPress Admin menu

public parent_file(mixed $parent_file) : mixed
Parameters
$parent_file : mixed
Return values
mixed

register()

public register() : mixed
Tags
since
4.0.0
  • Add custom capabilities.
Return values
mixed

registerMetaBoxes()

public registerMetaBoxes() : mixed
Return values
mixed

statuses()

public statuses() : Statuses
Return values
Statuses

addActions()

protected addActions() : mixed
Return values
mixed

createEditPage()

protected createEditPage() : EditCPTPage
Return values
EditCPTPage

createManagePage()

protected createManagePage() : ManageCPTPage
Return values
ManageCPTPage

detectCustomFieldsDefaults()

private detectCustomFieldsDefaults() : array<string|int, mixed>
Return values
array<string|int, mixed>

retrieveDefaultsFromBooking()

private retrieveDefaultsFromBooking(int $bookingId) : array<string|int, mixed>
Parameters
$bookingId : int
Return values
array<string|int, mixed>

Search results