Method |
Description |
|
__construct ( string $title ) |
Create a new term meta fields container |
|
attach ( ) |
Add term meta for each of the container taxonomies |
|
detach ( ) |
Revert the result of attach() |
|
init ( ) |
Bind attach() and save() to the appropriate WordPress actions. |
|
is_valid_attach ( ) : boolean |
Perform checks whether the container should be attached during the current request |
|
is_valid_save ( integer $term_id = null ) : boolean |
Perform checks whether the current save() request is valid. |
|
render ( $term = null ) |
Output the container markup |
|
save ( integer $term_id ) |
Perform save operation after successful is_valid_save() check. |
|
set_term_id ( integer $term_id ) |
Set the term ID the container will operate with. |
|
show_on_level ( integer $term_level ) : object |
Show the container only on particular term level. |
|
show_on_taxonomy ( string | array $taxonomies ) : object |
Show the container only on terms from the specified taxonomies. |
|