RoomTypeCPT extends EditableCPT
in package

Table of Contents

$capability  : string
$editPage  : EditCPTPage
$facilityManagePage  : mixed
$fieldGroups  : array<string|int, MetaBoxGroup>
$managePage  : ManageCPTPage
$postType  : mixed
$categoryTaxName  : mixed
$facilityTaxName  : mixed
$tagTaxName  : mixed
__construct()  : mixed
addBackButton()  : mixed
addFeaturedImageSupport()  : mixed
appendRoomMetas()  : string
filterPostClass()  : string
filterSingleTemplate()  : string
getCapabilityType()  : array<string|int, mixed>
Create an array of capability types depending on a post type name.
getCategoryTaxName()  : mixed
getEditPage()  : EditCPTPage
getFacilityTaxName()  : mixed
getFieldGroups()  : array<string|int, MetaBoxGroup>
getManagePage()  : ManageCPTPage
getMenuSlug()  : mixed
getPostType()  : mixed
getTagTaxName()  : mixed
initEditPage()  : mixed
initManagePage()  : mixed
initTaxManagePages()  : mixed
isCurrentEditPage()  : mixed
register()  : mixed
registerMetaBoxes()  : mixed
setupPseudoTemplate()  : mixed
stopAppendRoomMetas()  : mixed
useBlockEditor()  : mixed
addActions()  : mixed
createEditPage()  : EditCPTPage
createManagePage()  : ManageCPTPage
registerCategoryTaxonomy()  : mixed
registerFacilityTaxonomy()  : mixed
registerTagTaxonomy()  : mixed

Properties

$capability

protected string $capability = 'edit_post'

$editPage

protected EditCPTPage $editPage

$facilityManagePage

protected mixed $facilityManagePage

$fieldGroups

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

$managePage

protected ManageCPTPage $managePage

$postType

protected mixed $postType = 'mphb_room_type'

$categoryTaxName

private mixed $categoryTaxName = 'mphb_room_type_category'

$facilityTaxName

private mixed $facilityTaxName = 'mphb_room_type_facility'

$tagTaxName

private mixed $tagTaxName = 'mphb_room_type_tag'

Methods

__construct()

public __construct() : mixed
Return values
mixed

addBackButton()

public addBackButton() : mixed
Return values
mixed

addFeaturedImageSupport()

public addFeaturedImageSupport() : mixed
Return values
mixed

appendRoomMetas()

public appendRoomMetas(string $content) : string
Parameters
$content : string
Return values
string

filterPostClass()

public filterPostClass(array<string|int, mixed> $classes[, array<string|int, mixed> $class = '' ][, int $postId = '' ]) : string
Parameters
$classes : array<string|int, mixed>
$class : array<string|int, mixed> = ''
$postId : int = ''
Return values
string

filterSingleTemplate()

public filterSingleTemplate(string $template) : string
Parameters
$template : string
Return values
string

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>

getCategoryTaxName()

public getCategoryTaxName() : mixed
Return values
mixed

getEditPage()

public getEditPage() : EditCPTPage
Return values
EditCPTPage

getFacilityTaxName()

public getFacilityTaxName() : mixed
Return values
mixed

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

getTagTaxName()

public getTagTaxName() : mixed
Return values
mixed

initEditPage()

public initEditPage() : mixed
Return values
mixed

initManagePage()

public initManagePage() : mixed
Return values
mixed

initTaxManagePages()

public initTaxManagePages() : mixed
Return values
mixed

isCurrentEditPage()

public isCurrentEditPage() : 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

setupPseudoTemplate()

public setupPseudoTemplate(WP_Query $query) : mixed
Parameters
$query : WP_Query
Return values
mixed

stopAppendRoomMetas()

public stopAppendRoomMetas(WP_Query $query) : mixed
Parameters
$query : WP_Query
Return values
mixed

useBlockEditor()

public useBlockEditor(mixed $useBlockEditor, mixed $postType) : mixed
Parameters
$useBlockEditor : mixed
$postType : mixed
Return values
mixed

addActions()

protected addActions() : mixed
Return values
mixed

createEditPage()

protected createEditPage() : EditCPTPage
Return values
EditCPTPage

createManagePage()

protected createManagePage() : ManageCPTPage
Return values
ManageCPTPage

registerCategoryTaxonomy()

private registerCategoryTaxonomy() : mixed
Tags
since
4.0.0
  • Add custom capabilities.
Return values
mixed

registerFacilityTaxonomy()

private registerFacilityTaxonomy() : mixed
Tags
since
4.0.0
  • Add custom capabilities.
Return values
mixed

registerTagTaxonomy()

private registerTagTaxonomy() : mixed
Tags
since
4.0.0
  • Add custom capabilities.
Return values
mixed

Search results