ServiceCPT
extends EditableCPT
in package
Table of Contents
- $capability : string
- $editPage : EditCPTPage
- $fieldGroups : array<string|int, MetaBoxGroup>
- $managePage : ManageCPTPage
- $postType : mixed
- __construct() : mixed
- addBackButton() : mixed
- addFeaturedImageSupport() : mixed
- appendMetas() : string
- Append metas to service content.
- filterPostClass() : 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
- maybeRedirect() : mixed
- Redirects services from /service/service-slug to /services/service-slug.
- register() : mixed
- registerMetaBoxes() : mixed
- setupPseudoTemplate() : null
- stopAppendMetas() : mixed
- useBlockEditor() : 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_room_service'
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addBackButton()
public
addBackButton() : mixed
Return values
mixed —addFeaturedImageSupport()
public
addFeaturedImageSupport() : mixed
Return values
mixed —appendMetas()
Append metas to service content.
public
appendMetas(string $content) : string
Parameters
- $content : string
Return values
string —filterPostClass()
public
filterPostClass(mixed $classes[, mixed $class = '' ][, mixed $postId = '' ]) : mixed
Parameters
- $classes : mixed
- $class : mixed = ''
- $postId : 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 —maybeRedirect()
Redirects services from /service/service-slug to /services/service-slug.
public
maybeRedirect() : mixed
Tags
Return values
mixed —register()
public
register() : mixed
Tags
Return values
mixed —registerMetaBoxes()
public
registerMetaBoxes() : mixed
Return values
mixed —setupPseudoTemplate()
public
setupPseudoTemplate(WP_Query $query) : null
Parameters
- $query : WP_Query
Return values
null —stopAppendMetas()
public
stopAppendMetas(mixed $query) : mixed
Parameters
- $query : mixed
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