EditTermFeaturedImage extends EditTermCustomField
in package

Tags
since
1.2

Table of Contents

$description  : string
$label  : string
$name  : string
$taxonomy  : string
__construct()  : mixed
display()  : mixed
enqueueAssets()  : mixed
getInputId()  : string
getInputName()  : string
getMetaName()  : string
getValue()  : mixed
sanitizeValue()  : mixed
save()  : mixed
addActions()  : mixed
displayInput()  : mixed
verifyNonce()  : bool

Properties

$description

public string $description
Tags
since
1.2

$label

public string $label
Tags
since
1.2

$name

public string $name
Tags
since
1.2

$taxonomy

public string $taxonomy
Tags
since
1.2

Methods

__construct()

public __construct(string $name, string $taxonomy[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
$name : string

Unprefixed name.

$taxonomy : string
$args : array<string|int, mixed> = []

Optional. @param string $args['label'] '' by default. @param string $args['description'] '' by default.

Tags
since
1.2
Return values
mixed

display()

public abstract display(WP_Term $term) : mixed
Parameters
$term : WP_Term
Tags
access

protected

since
1.2
Return values
mixed

enqueueAssets()

public enqueueAssets() : mixed
Tags
access

protected

since
1.2
Return values
mixed

getInputId()

public getInputId() : string
Tags
since
1.2
Return values
string

getInputName()

public getInputName() : string
Tags
since
1.2
Return values
string

getMetaName()

public getMetaName() : string
Tags
since
1.2
Return values
string

getValue()

public getValue(WP_Term|int $term) : mixed
Parameters
$term : WP_Term|int
Tags
since
1.2
Return values
mixed

sanitizeValue()

public sanitizeValue(string $value) : mixed
Parameters
$value : string
Tags
since
1.2
Return values
mixed

save()

public save(int $termId) : mixed
Parameters
$termId : int
Tags
access

protected

since
1.2
Return values
mixed

addActions()

protected addActions() : mixed
Tags
since
1.2
Return values
mixed

displayInput()

protected displayInput(WP_Term $term, string $view) : mixed
Parameters
$term : WP_Term
$view : string

'edit'

Tags
since
1.2
Return values
mixed

verifyNonce()

protected abstract verifyNonce(int $termId) : bool
Parameters
$termId : int
Tags
since
1.2
Return values
bool

Search results