TermCustomField
in package
Tags
Table of Contents
- $description : string
- $label : string
- $name : string
- $taxonomy : string
- __construct() : mixed
- display() : 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
$label
public
string
$label
Tags
$name
public
string
$name
Tags
$taxonomy
public
string
$taxonomy
Tags
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
Return values
mixed —display()
public
abstract display(WP_Term $term) : mixed
Parameters
- $term : WP_Term
Tags
Return values
mixed —getInputId()
public
getInputId() : string
Tags
Return values
string —getInputName()
public
getInputName() : string
Tags
Return values
string —getMetaName()
public
getMetaName() : string
Tags
Return values
string —getValue()
public
getValue(WP_Term|int $term) : mixed
Parameters
- $term : WP_Term|int
Tags
Return values
mixed —sanitizeValue()
public
sanitizeValue(string $value) : mixed
Parameters
- $value : string
Tags
Return values
mixed —save()
public
save(int $termId) : mixed
Parameters
- $termId : int
Tags
Return values
mixed —addActions()
protected
addActions() : mixed
Tags
Return values
mixed —displayInput()
protected
abstract displayInput(WP_Term $term, string $view) : mixed
Parameters
- $term : WP_Term
- $view : string
-
'add'|'edit'
Tags
Return values
mixed —verifyNonce()
protected
abstract verifyNonce(int $termId) : bool
Parameters
- $termId : int