wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/taxonomy.php › WordPress File
Functions78
› 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 | Clean the caches for a taxonomy. |
clean_term_cache | Will remove 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 | Get an array of ancestor IDs for a given object. |
get_objects_in_term | Retrieve object_ids of valid taxonomy and term. |
get_object_taxonomies | Return 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 | Retrieve all taxonomies of a post with just the names. |
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 | Get all Term data from database by Term ID. |
get_terms | Retrieve the terms in a given taxonomy or list of taxonomies. |
get_term_by | Get all Term data from database by Term field and data. |
get_term_children | Merge all term children into a single array of their IDs. |
get_term_field | Get sanitized Term field. |
get_term_link | Generate 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 | Retrieve all taxonomies associated with a post. |
has_term_meta | Get all meta data, including meta IDs, for the given term ID. |
is_object_in_taxonomy | Determine if the given object type is associated with the given taxonomy. |
is_object_in_term | Determine 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". |
register_taxonomy | Creates or modifies a taxonomy object. |
register_taxonomy_for_object_type | Add an already registered taxonomy to an object type. |
register_term_meta | Registers a meta key for terms. |
sanitize_term | Sanitize Term all fields. |
sanitize_term_field | Cleanse the field value in the term based on the context. |
taxonomy_exists | Determines whether the taxonomy name exists. |
term_exists | Determines whether a term exists. |
term_is_ancestor_of | Check if a term is an ancestor of another term. |
the_taxonomies | Display the taxonomies of a post with available options. |
unregister_taxonomy | Unregisters a taxonomy. |
unregister_taxonomy_for_object_type | Remove 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 to Taxonomy in cache. |
update_term_meta | Updates term metadata. |
wp_add_object_terms | Add 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 | Count how many terms are in Taxonomy. |
wp_defer_term_counting | Enable or disable term counting. |
wp_delete_category | Deletes one existing category. |
wp_delete_object_term_relationships | Will unlink 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 | Get the new term ID corresponding to a previously split term. |
wp_get_split_terms | Get 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 | Add a new term to the database. |
wp_remove_object_terms | Remove term(s) associated with a given object. |
wp_set_object_terms | Create Term and Taxonomy Relationships. |
wp_term_is_shared | Determine whether a term is shared between multiple taxonomies. |
wp_unique_term_slug | Will make slug unique, if it isn't already. |
wp_update_term | Update term based on arguments provided. |
wp_update_term_count | Updates the amount of terms in taxonomy. |
wp_update_term_count_now | Perform term count update immediately. |
_get_term_children | Get the subset of $terms that are descendants of $term_id. |
_get_term_hierarchy | Retrieves children of taxonomy as Term IDs. |
_pad_term_counts | Add 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. |
_split_shared_term | Create a new term for a term_taxonomy item that currently shares its term with another term_taxonomy. |
_update_generic_term_count | Will update term count based on number of objects. |
_update_post_term_count | Will update term count based on object types of the current taxonomy. |
_wp_batch_split_terms | Splits a batch of shared taxonomy terms. |
_wp_check_for_scheduled_split_terms | In order to avoid the _wp_batch_split_terms() job being accidentally removed, check that it's still scheduled while we haven't finished splitting terms. |
_wp_check_split_default_terms | Check default categories when a term gets split to see if any of them need to be updated. |
_wp_check_split_nav_menu_terms | If the term being split is a nav_menu, change associations. |
_wp_check_split_terms_in_menus | Check menu items when a term gets split to see if any of them need to be updated. |