Метод | Описание | |
---|---|---|
delete_term_meta ( integer $term_id, integer $tt_id ) | Delete term meta data when a term is deleted. | |
fetch_the_term ( integer $id = '' ) : null | object | Try to fetch a term if none can be found. | |
get_tax_labels ( string $tax_type ) : object | null | Fetch Tax labels | |
get_term_data ( object | null $term = null, object | null $term_id ) : array | Fetch set Term data. | |
get_term_meta ( integer $term_id, boolean $use_cache = true ) : array | Returns term meta data from ID. | |
get_term_meta_defaults ( ) : array | Returns an array of default term options. | |
initialize_term_meta ( ) | Initializes term meta data filters and functions. | |
update_term_meta ( integer $term_id, integer $tt_id, string $taxonomy = '' ) : void | Sanitizes and saves term meta data when a term is altered. |
Метод | Описание | |
---|---|---|
__construct ( ) | Constructor, load parent constructor. | |
get_old_term_data ( object $term ) : array | Fetches term metadata array for the inpost term metabox. | |
get_the_term_name ( object $term, boolean $singular = true, boolean $fallback = true, boolean $use_cache = true ) : string | Get the current screen term labels. |
public delete_term_meta ( integer $term_id, integer $tt_id ) | ||
$term_id | integer | Term ID. |
$tt_id | integer | Term Taxonomy ID. |
protected get_old_term_data ( object $term ) : array | ||
$term | object | The TT object. Must be assigned. |
Результат | array | The SEO Framework TT data. |
public get_term_meta_defaults ( ) : array | ||
Результат | array | The Term Metadata default options. |
protected get_the_term_name ( object $term, boolean $singular = true, boolean $fallback = true, boolean $use_cache = true ) : string | ||
$term | object | The Taxonomy Term object. |
$singular | boolean | Whether to fetch a singular or plural name. |
$fallback | boolean | Whether to fallback on a generic name. |
$use_cache | boolean | Whether to read from cache. |
Результат | string | the Term name. |
public initialize_term_meta ( ) |