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_metaAdds metadata to a term.
clean_object_term_cacheRemoves the taxonomy relationship to terms from the cache.
clean_taxonomy_cacheCleans the caches for a taxonomy.
clean_term_cacheRemoves all of the term IDs from the cache.
create_initial_taxonomiesCreates the initial taxonomies.
delete_term_metaRemoves metadata matching criteria from a term.
get_ancestorsGets an array of ancestor IDs for a given object.
get_objects_in_termRetrieves object IDs of valid taxonomy and term.
get_object_taxonomiesReturns 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_cacheRetrieves the cached term objects for the given object ID.
get_post_taxonomiesRetrieves all taxonomy names for the given post.
get_taxonomiesRetrieves a list of registered taxonomy names or objects.
get_taxonomyRetrieves the taxonomy object of $taxonomy.
get_taxonomy_labelsBuilds an object with all taxonomy labels out of a taxonomy object.
get_tax_sqlGiven a taxonomy query, generates SQL to be appended to a main query.
get_termGets all term data from database by term ID.
get_termsRetrieves the terms in a given taxonomy or list of taxonomies.
get_term_byGets all term data from database by term field and data.
get_term_childrenMerges all term children into a single array of their IDs.
get_term_fieldGets sanitized term field.
get_term_linkGenerates a permalink for a taxonomy term archive.
get_term_metaRetrieves metadata for a term.
get_term_to_editSanitizes term for editing.
get_the_taxonomiesRetrieves all taxonomies associated with a post.
has_term_metaGets all meta data, including meta IDs, for the given term ID.
is_object_in_taxonomyDetermines if the given object type is associated with the given taxonomy.
is_object_in_termDetermines if the given object is associated with any of the given terms.
is_taxonomy_hierarchicalDetermines whether the taxonomy object is hierarchical.
is_taxonomy_viewableDetermines whether a taxonomy is considered "viewable".
is_term_publicly_viewableDetermines whether a term is publicly viewable.
register_taxonomyCreates or modifies a taxonomy object.
register_taxonomy_for_object_typeAdds an already registered taxonomy to an object type.
register_term_metaRegisters a meta key for terms.
sanitize_termSanitizes all term fields.
sanitize_term_fieldSanitizes the field value in the term based on the context.
taxonomy_existsDetermines whether the taxonomy name exists.
term_existsDetermines whether a taxonomy term exists.
term_is_ancestor_ofChecks if a term is an ancestor of another term.
the_taxonomiesDisplays the taxonomies of a post with available options.
unregister_taxonomyUnregisters a taxonomy.
unregister_taxonomy_for_object_typeRemoves an already registered taxonomy from an object type.
unregister_term_metaUnregisters a meta key for terms.
update_object_term_cacheUpdates the cache for the given term object ID(s).
update_termmeta_cacheUpdates metadata cache for list of term IDs.
update_term_cacheUpdates terms in cache.
update_term_metaUpdates term metadata.
wp_add_object_termsAdds term(s) associated with a given object.
wp_cache_set_terms_last_changedSets the last changed time for the 'terms' cache group.
wp_check_term_hierarchy_for_loopsChecks the given subset of the term hierarchy for hierarchy loops.
wp_check_term_meta_support_prefilterAborts calls to term meta if it is not supported.
wp_count_termsCounts how many terms are in taxonomy.
wp_defer_term_countingEnables or disables term counting.
wp_delete_categoryDeletes one existing category.
wp_delete_object_term_relationshipsUnlinks the object from the taxonomy or taxonomies.
wp_delete_termRemoves a term from the database.
wp_get_object_termsRetrieves the terms associated with the given object(s), in the supplied taxonomies.
wp_get_split_termGets the new term ID corresponding to a previously split term.
wp_get_split_termsGets data about terms that previously shared a single term_id, but have since been split.
wp_get_term_taxonomy_parent_idReturns the term's parent's term ID.
wp_insert_termAdds a new term to the database.
wp_lazyload_term_metaQueue term meta for lazy-loading.
wp_remove_object_termsRemoves term(s) associated with a given object.
wp_set_object_termsCreates term and taxonomy relationships.
wp_term_is_sharedDetermines whether a term is shared between multiple taxonomies.
wp_unique_term_slugMakes term slug unique, if it isn't already.
wp_update_termUpdates term based on arguments provided.
wp_update_term_countUpdates the amount of terms in taxonomy.
wp_update_term_count_nowPerforms term count update immediately.
_get_term_childrenGets the subset of $terms that are descendants of $term_id.
_get_term_hierarchyRetrieves children of taxonomy as term IDs.
_pad_term_countsAdds count of children to parent count.
_prime_term_cachesAdds any terms from the given IDs to the cache that do not already exist in cache.
_update_generic_term_countUpdates term count based on number of objects.
_update_post_term_countUpdates term count based on object types of the current taxonomy.
_wp_batch_split_termsSplits a batch of shared taxonomy terms.