CouponCPT
extends EditableCPT
in package
Table of Contents
- $capability : string
- $editPage : EditCPTPage
- $fieldGroups : array<string|int, MetaBoxGroup>
- $managePage : ManageCPTPage
- $postType : 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() : mixed
- 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
- udpateCouponUsage() : mixed
- addActions() : mixed
- createEditPage() : EditCPTPage
- createManagePage() : ManageCPTPage
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_coupon'
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
Return values
array<string|int, mixed> —getEditPage()
public
getEditPage() : EditCPTPage
Return values
EditCPTPage —getFieldGroups()
public
getFieldGroups() : mixed
Return values
mixed —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
Return values
mixed —registerMetaBoxes()
public
registerMetaBoxes() : mixed
Return values
mixed —udpateCouponUsage()
public
udpateCouponUsage(Booking $booking, string $oldStatus) : mixed
Parameters
- $booking : Booking
- $oldStatus : string
Return values
mixed —addActions()
protected
addActions() : mixed
Return values
mixed —createEditPage()
protected
createEditPage() : EditCPTPage
Return values
EditCPTPage —createManagePage()
protected
createManagePage() : ManageCPTPage