wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/taxonomy.php › WordPress File
Functions75
› Core Taxonomy API
Function | Short description |
---|---|
add_term_meta | Adds metadata to a term. |
clean_object_term_cache | Removes the taxonomy relationship to terms from the cache. |
clean_taxonomy_cache | Cleans the caches for a taxonomy. |
clean_term_cache | Removes all of the term IDs from the cache. |
create_initial_taxonomies | Creates the initial taxonomies. |
delete_term_meta | Removes metadata matching criteria from a term. |
get_ancestors | Gets an array of ancestor IDs for a given object. |
get_objects_in_term | Retrieves object IDs of valid taxonomy and term. |
get_object_taxonomies | Returns the names or objects of the taxonomies which are registered for the requested object or object type, such as a post object or post type name. |
get_object_term_cache | Retrieves the cached term objects for the given object ID. |
get_post_taxonomies | Retrieves all taxonomy names for the given post. |
get_taxonomies | Retrieves a list of registered taxonomy names or objects. |
get_taxonomy | Retrieves the taxonomy object of $taxonomy. |
get_taxonomy_labels | Builds an object with all taxonomy labels out of a taxonomy object. |
get_tax_sql | Given a taxonomy query, generates SQL to be appended to a main query. |
get_term | Gets all term data from database by term ID. |
get_terms | Retrieves the terms in a given taxonomy or list of taxonomies. |
get_term_by | Gets all term data from database by term field and data. |
get_term_children | Merges all term children into a single array of their IDs. |
get_term_field | Gets sanitized term field. |
get_term_link | Generates a permalink for a taxonomy term archive. |
get_term_meta | Retrieves metadata for a term. |
get_term_to_edit | Sanitizes term for editing. |
get_the_taxonomies | Retrieves all taxonomies associated with a post. |
has_term_meta | Gets all meta data, including meta IDs, for the given term ID. |
is_object_in_taxonomy | Determines if the given object type is associated with the given taxonomy. |
is_object_in_term | Determines if the given object is associated with any of the given terms. |
is_taxonomy_hierarchical | Determines whether the taxonomy object is hierarchical. |
is_taxonomy_viewable | Determines whether a taxonomy is considered "viewable". |
is_term_publicly_viewable | Determines whether a term is publicly viewable. |
register_taxonomy | Creates or modifies a taxonomy object. |
register_taxonomy_for_object_type | Adds an already registered taxonomy to an object type. |
register_term_meta | Registers a meta key for terms. |
sanitize_term | Sanitizes all term fields. |
sanitize_term_field | Sanitizes the field value in the term based on the context. |
taxonomy_exists | Determines whether the taxonomy name exists. |
term_exists | Determines whether a taxonomy term exists. |
term_is_ancestor_of | Checks if a term is an ancestor of another term. |
the_taxonomies | Displays the taxonomies of a post with available options. |
unregister_taxonomy | Unregisters a taxonomy. |
unregister_taxonomy_for_object_type | Removes an already registered taxonomy from an object type. |
unregister_term_meta | Unregisters a meta key for terms. |
update_object_term_cache | Updates the cache for the given term object ID(s). |
update_termmeta_cache | Updates metadata cache for list of term IDs. |
update_term_cache | Updates terms in cache. |
update_term_meta | Updates term metadata. |
wp_add_object_terms | Adds term(s) associated with a given object. |
wp_cache_set_terms_last_changed | Sets the last changed time for the 'terms' cache group. |
wp_check_term_hierarchy_for_loops | Checks the given subset of the term hierarchy for hierarchy loops. |
wp_check_term_meta_support_prefilter | Aborts calls to term meta if it is not supported. |
wp_count_terms | Counts how many terms are in taxonomy. |
wp_defer_term_counting | Enables or disables term counting. |
wp_delete_category | Deletes one existing category. |
wp_delete_object_term_relationships | Unlinks the object from the taxonomy or taxonomies. |
wp_delete_term | Removes a term from the database. |
wp_get_object_terms | Retrieves the terms associated with the given object(s), in the supplied taxonomies. |
wp_get_split_term | Gets the new term ID corresponding to a previously split term. |
wp_get_split_terms | Gets data about terms that previously shared a single term_id, but have since been split. |
wp_get_term_taxonomy_parent_id | Returns the term's parent's term ID. |
wp_insert_term | Adds a new term to the database. |
wp_lazyload_term_meta | Queue term meta for lazy-loading. |
wp_remove_object_terms | Removes term(s) associated with a given object. |
wp_set_object_terms | Creates term and taxonomy relationships. |
wp_term_is_shared | Determines whether a term is shared between multiple taxonomies. |
wp_unique_term_slug | Makes term slug unique, if it isn't already. |
wp_update_term | Updates term based on arguments provided. |
wp_update_term_count | Updates the amount of terms in taxonomy. |
wp_update_term_count_now | Performs term count update immediately. |
_get_term_children | Gets the subset of $terms that are descendants of $term_id. |
_get_term_hierarchy | Retrieves children of taxonomy as term IDs. |
_pad_term_counts | Adds count of children to parent count. |
_prime_term_caches | Adds any terms from the given IDs to the cache that do not already exist in cache. |
_update_generic_term_count | Updates term count based on number of objects. |
_update_post_term_count | Updates term count based on object types of the current taxonomy. |
_wp_batch_split_terms | Splits a batch of shared taxonomy terms. |