BookingStatusMetabox extends SubmitMetabox
in package

Tags
since
1.15.2

Table of Contents

$context  : string
$priority  : string
$capability  : string
$editPage  : EditPostPage|null
$entityType  : string
$id  : string
$isLoaded  : bool
$isSaved  : bool
$name  : string
$nonceField  : string
$postType  : string
$saveAction  : string
$statuses  : AbstractPostStatuses|null
__construct()  : mixed
adminErrorNotice()  : mixed
display()  : mixed
getLabel()  : string
load()  : mixed
register()  : mixed
save()  : mixed
addActions()  : mixed
canSave()  : bool
loadMetabox()  : mixed
parseValues()  : array<string|int, mixed>
renderRegular()  : string
renderSide()  : string
saveValues()  : mixed
setNoticeTimeSlotError()  : mixed
theName()  : string

Properties

$context

public string $context
Tags
since
1.0

$priority

public string $priority
Tags
since
1.0

$capability

protected string $capability = 'edit_post'
Tags
since
1.0

$editPage

protected EditPostPage|null $editPage = null
Tags
since
1.0

$entityType

protected string $entityType
Tags
since
1.0

$id

protected string $id
Tags
since
1.0

$isLoaded

protected bool $isLoaded = false
Tags
since
1.0

$isSaved

protected bool $isSaved = false
Tags
since
1.0

$nonceField

protected string $nonceField
Tags
since
1.0

$postType

protected string $postType
Tags
since
1.0

$saveAction

protected string $saveAction
Tags
since
1.0

$statuses

protected AbstractPostStatuses|null $statuses = null
Tags
since
1.0

Methods

__construct()

public __construct(string $postType[, string $context = 'normal' ][, string $priority = 'default' ]) : mixed
Parameters
$postType : string
$context : string = 'normal'

Optional. 'side', 'normal' or 'advanced'. 'normal' by default.

$priority : string = 'default'

Optional. 'low', 'default' or 'high'. 'default' by default.

Tags
since
1.0
Return values
mixed

adminErrorNotice()

public adminErrorNotice() : mixed
Return values
mixed

display()

public display() : mixed
Tags
access

protected

since
1.0
Return values
mixed

getLabel()

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

load()

public load() : mixed
Tags
access

protected

since
1.0
Return values
mixed

register()

public register() : mixed
Tags
access

protected

since
1.0
Return values
mixed

save()

public save(int $postId, WP_Post $post) : mixed
Parameters
$postId : int
$post : WP_Post
Tags
access

protected

since
1.0
Return values
mixed

addActions()

protected addActions() : mixed
Return values
mixed

canSave()

protected canSave(int $postId, WP_Post $post) : bool
Parameters
$postId : int
$post : WP_Post
Return values
bool

loadMetabox()

protected loadMetabox() : mixed
Tags
since
1.0
Return values
mixed

parseValues()

protected abstract parseValues(int $postId, WP_Post $post) : array<string|int, mixed>
Parameters
$postId : int
$post : WP_Post
Tags
since
1.0
Return values
array<string|int, mixed>

See the exact format in the child classes.

renderRegular()

protected abstract renderRegular() : string
Tags
since
1.0
Return values
string

renderSide()

protected abstract renderSide() : string
Tags
since
1.0
Return values
string

saveValues()

protected abstract saveValues(array<string|int, mixed> $values, int $postId, WP_Post $post) : mixed
Parameters
$values : array<string|int, mixed>
$postId : int
$post : WP_Post
Tags
since
1.0
Return values
mixed

setNoticeTimeSlotError()

protected setNoticeTimeSlotError() : mixed
Return values
mixed

theName()

protected abstract theName() : string
Tags
since
1.0
Return values
string

Search results