ServicePostType extends AbstractBlockEditorPostType
in package
Uses PostTypeCategory, PostTypeTag

Tags
since
1.0

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
since
1.0

POST_TYPE

public mixed POST_TYPE = 'mpa_service'
Tags
since
1.0

TAG_NAME

public mixed TAG_NAME = 'mpa_service_tag'
Tags
since
1.0

Properties

$entityType

protected string $entityType
Tags
since
1.0

Methods

__construct()

public __construct() : mixed
Tags
since
1.0
Return values
mixed —

addTaxonomiesToMenu()

public addTaxonomiesToMenu() : mixed
Tags
access

protected

global

array $submenu

since
1.0
Return values
mixed —

filterBlockEditerState()

public filterBlockEditerState(bool $enableBlockEditor, string $postType) : bool
Parameters
$enableBlockEditor : bool
$postType : string
Tags
access

protected

Return values
bool —

getCategory()

public getCategory() : string
Tags
since
1.2
Return values
string —
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
since
1.2
Return values
string —

Link on success, empty string if category does not exist.

getLabel()

public getLabel() : string
Tags
since
1.0
Return values
string —

getPostType()

public getPostType() : string
Tags
since
1.0
Return values
string —

getSingularLabel()

public getSingularLabel() : string
Tags
since
1.0
Return values
string —

getTag()

public getTag() : string
Tags
since
1.2
Return values
string —
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
since
1.2
Return values
string —

Link on success, empty string if tag does not exist.

register()

public register() : mixed
Tags
access

protected

since
1.0
Return values
mixed —

registerCategory()

public registerCategory() : mixed
Tags
access

protected

since
1.2
Return values
mixed —

registerMetaboxes()

public registerMetaboxes() : mixed
Tags
access

protected

since
1.0
Return values
mixed —

registerTag()

public registerTag() : mixed
Tags
access

protected

since
1.2
Return values
mixed —

addActions()

protected addActions() : mixed
Tags
since
1.0
Return values
mixed —

getCategoryArgs()

protected getCategoryArgs() : array<string|int, mixed>
Tags
since
1.2
Return values
array<string|int, mixed> —

getCategoryLabels()

protected getCategoryLabels() : array<string|int, mixed>
Tags
since
1.2
Return values
array<string|int, mixed> —

getDescription()

protected getDescription() : string
Tags
since
1.0
Return values
string —

getLabels()

protected getLabels() : array<string|int, mixed>
Tags
since
1.0
Return values
array<string|int, mixed> —

getTagArgs()

protected getTagArgs() : array<string|int, mixed>
Tags
since
1.2
Return values
array<string|int, mixed> —

getTagLabels()

protected getTagLabels() : array<string|int, mixed>
Tags
since
1.2
Return values
array<string|int, mixed> —

registerArgs()

protected registerArgs() : array<string|int, mixed>
Tags
since
1.0
Return values
array<string|int, mixed> —

Search results