WPDev.one
Core PHP Functions

Functions Reference

4125+ PHP functions available in the WordPress global namespace. Complete documentation with parameters, return values, and usage examples.

Showing 1551 to 1600 of 4125 functions (Page 32 of 83)
register_taxonomy()

Creates or modifies a taxonomy object.

$taxonomy $object_type $args
unregister_taxonomy()

Unregisters a taxonomy.

$taxonomy
get_taxonomy_labels()

Builds an object with all taxonomy labels out of a taxonomy object.

$tax
register_taxonomy_for_object_type()

Adds an already registered taxonomy to an object type.

$taxonomy $object_type
unregister_taxonomy_for_object_type()

Removes an already registered taxonomy from an object type.

$taxonomy $object_type
get_objects_in_term()

Retrieves object IDs of valid taxonomy and term.

$term_ids $taxonomies $args
get_tax_sql()

Given a taxonomy query, generates SQL to be appended to a main query.

$tax_query $primary_table $primary_id_column
get_term()

Gets all term data from database by term ID.

$term $taxonomy $output +1 more
get_term_by()

Gets all term data from database by term field and data.

$field $value $taxonomy +2 more
get_term_children()

Merges all term children into a single array of their IDs.

$term_id $taxonomy
get_term_field()

Gets sanitized term field.

$field $term $taxonomy +1 more
get_term_to_edit()

Sanitizes term for editing.

$id $taxonomy
get_terms()

Retrieves the terms in a given taxonomy or list of taxonomies.

$args $deprecated
add_term_meta()

Adds metadata to a term.

$term_id $meta_key $meta_value +1 more
delete_term_meta()

Removes metadata matching criteria from a term.

$term_id $meta_key $meta_value
get_term_meta()

Retrieves metadata for a term.

$term_id $key $single
update_term_meta()

Updates term metadata.

$term_id $meta_key $meta_value +1 more
update_termmeta_cache()

Updates metadata cache for list of term IDs.

$term_ids
wp_lazyload_term_meta()

Queue term meta for lazy-loading.

$term_ids
has_term_meta()

Gets all meta data, including meta IDs, for the given term ID.

$term_id
register_term_meta()

Registers a meta key for terms.

$taxonomy $meta_key $args
unregister_term_meta()

Unregisters a meta key for terms.

$taxonomy $meta_key
term_exists()

Determines whether a taxonomy term exists.

$term $taxonomy $parent_term
term_is_ancestor_of()

Checks if a term is an ancestor of another term.

$term1 $term2 $taxonomy
sanitize_term()

Sanitizes all term fields.

$term $taxonomy $context
sanitize_term_field()

Sanitizes the field value in the term based on the context.

$field $value $term_id +2 more
wp_count_terms()

Counts how many terms are in taxonomy.

$args $deprecated
wp_delete_object_term_relationships()

Unlinks the object from the taxonomy or taxonomies.

$object_id $taxonomies
wp_delete_term()

Removes a term from the database.

$term $taxonomy $args
wp_delete_category()

Deletes one existing category.

$cat_id
wp_get_object_terms()

Retrieves the terms associated with the given object(s), in the supplied taxonomies.

$object_ids $taxonomies $args
wp_insert_term()

Adds a new term to the database.

$term $taxonomy $args
wp_set_object_terms()

Creates term and taxonomy relationships.

$object_id $terms $taxonomy +1 more
wp_add_object_terms()

Adds term(s) associated with a given object.

$object_id $terms $taxonomy
wp_remove_object_terms()

Removes term(s) associated with a given object.

$object_id $terms $taxonomy
wp_unique_term_slug()

Makes term slug unique, if it isn't already.

$slug $term
wp_update_term()

Updates term based on arguments provided.

$term_id $taxonomy $args
wp_defer_term_counting()

Enables or disables term counting.

$defer
wp_update_term_count()

Updates the amount of terms in taxonomy.

$terms $taxonomy $do_deferred
wp_update_term_count_now()

Performs term count update immediately.

$terms $taxonomy
clean_object_term_cache()

Removes the taxonomy relationship to terms from the cache.

$object_ids $object_type
clean_term_cache()

Removes all of the term IDs from the cache.

$ids $taxonomy $clean_taxonomy
clean_taxonomy_cache()

Cleans the caches for a taxonomy.

$taxonomy
get_object_term_cache()

Retrieves the cached term objects for the given object ID.

$id $taxonomy
update_object_term_cache()

Updates the cache for the given term object ID(s).

$object_ids $object_type
update_term_cache()

Updates terms in cache.

$terms $taxonomy
_get_term_hierarchy()

Retrieves children of taxonomy as term IDs.

$taxonomy
_get_term_children()

Gets the subset of $terms that are descendants of $term_id.

$term_id $terms $taxonomy +1 more
_pad_term_counts()

Adds count of children to parent count.

$terms $taxonomy
_prime_term_caches()

Adds any terms from the given IDs to the cache that do not already exist in cache.

$term_ids $update_meta_cache