Метод |
Описание |
|
__construct ( object | integer | string | null $term, array $args = [] ) |
|
|
assign ( integer $object_id ) : int[] | WP_Error |
Associate the passed Object ID with this taxonomy term. |
|
has_term ( ) : boolean |
Check to see if this instance has a valid term object in $_term property. |
|
is_assigned ( integer $object_id ) : boolean | WP_Error |
Is the passed Object ID associated with this taxonomy term. |
|
item_class ( ) : mixed |
Return the item class name defined for this model. |
|
item_taxonomy ( ) : mixed | null |
Returns the TAXONOMY value for this model's item. |
|
make_new ( array $args ) : WPLib_Term_Model_Base |
|
|
object_ids ( ) : array | WP_Error |
Return array of object IDs associate with this taxonomy term. |
|
permalink ( ) : string | WP_Error |
|
|
set_term ( object $term ) : mixed | WP_Term | object |
|
|
taxonomy ( ) |
|
|
term ( ) : WP_Term | object | null |
|
|
term_description ( ) : string |
|
|
term_id ( ) : integer |
|
|
term_name ( ) : null | string |
|
|
term_slug ( ) : null | string |
|
|
unassign ( integer $object_id ) : boolean | WP_Error |
Associate the passed Object ID with this taxonomy term. |
|
update_description ( string $new_description ) |
|
|
update_field ( string $field_name, string $new_value ) |
|
|
update_slug ( string $new_slug ) |
|
|