ServicePostType
extends AbstractBlockEditorPostType
in package
Uses
PostTypeCategory, PostTypeTag
Tags
Table of Contents
- CATEGORY_NAME = 'mpa_service_category'
- POST_TYPE = 'mpa_service'
- TAG_NAME = 'mpa_service_tag'
- $entityType : string
- __construct() : mixed
- addTaxonomiesToMenu() : mixed
- filterBlockEditerState() : bool
- getCategory() : string
- getCategoryLink() : string
- getLabel() : string
- getPostType() : string
- getSingularLabel() : string
- getTag() : string
- getTagLink() : string
- register() : mixed
- registerCategory() : mixed
- registerMetaboxes() : mixed
- registerTag() : mixed
- addActions() : mixed
- getCategoryArgs() : array<string|int, mixed>
- getCategoryLabels() : array<string|int, mixed>
- getDescription() : string
- getLabels() : array<string|int, mixed>
- getTagArgs() : array<string|int, mixed>
- getTagLabels() : array<string|int, mixed>
- registerArgs() : array<string|int, mixed>
Constants
CATEGORY_NAME
public
mixed
CATEGORY_NAME
= 'mpa_service_category'
Tags
POST_TYPE
public
mixed
POST_TYPE
= 'mpa_service'
Tags
TAG_NAME
public
mixed
TAG_NAME
= 'mpa_service_tag'
Tags
Properties
$entityType
protected
string
$entityType
Tags
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —addTaxonomiesToMenu()
public
addTaxonomiesToMenu() : mixed
Tags
Return values
mixed —filterBlockEditerState()
public
filterBlockEditerState(bool $enableBlockEditor, string $postType) : bool
Parameters
- $enableBlockEditor : bool
- $postType : string
Tags
Return values
bool —getCategory()
public
getCategory() : string
Tags
Return values
string —getCategoryLink()
public
getCategoryLink(WP_Term|int|string $term) : string
Parameters
- $term : WP_Term|int|string
-
The term object, ID, or slug whose link will be retrieved.
Tags
Return values
string —Link on success, empty string if category does not exist.
getLabel()
public
getLabel() : string
Tags
Return values
string —getPostType()
public
getPostType() : string
Tags
Return values
string —getSingularLabel()
public
getSingularLabel() : string
Tags
Return values
string —getTag()
public
getTag() : string
Tags
Return values
string —getTagLink()
public
getTagLink(WP_Term|int|string $term) : string
Parameters
- $term : WP_Term|int|string
-
The term object, ID, or slug whose link will be retrieved.
Tags
Return values
string —Link on success, empty string if tag does not exist.
register()
public
register() : mixed
Tags
Return values
mixed —registerCategory()
public
registerCategory() : mixed
Tags
Return values
mixed —registerMetaboxes()
public
registerMetaboxes() : mixed
Tags
Return values
mixed —registerTag()
public
registerTag() : mixed
Tags
Return values
mixed —addActions()
protected
addActions() : mixed
Tags
Return values
mixed —getCategoryArgs()
protected
getCategoryArgs() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getCategoryLabels()
protected
getCategoryLabels() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getDescription()
protected
getDescription() : string
Tags
Return values
string —getLabels()
protected
getLabels() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getTagArgs()
protected
getTagArgs() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getTagLabels()
protected
getTagLabels() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —registerArgs()
protected
registerArgs() : array<string|int, mixed>