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 2351 to 2400 of 4125 functions (Page 48 of 83)
_wp_filter_build_unique_id()

Builds a unique string ID for a hook callback function.

$hook_name $callback $priority
get_block_wrapper_attributes()

Generates a string of attributes by applying to the current block being

$extra_attributes
get_category_link()

Retrieves category link URL.

$category
get_category_parents()

Retrieves category parents with separator.

$category_id $link $separator +2 more
get_the_category()

Retrieves post categories.

$post_id
get_the_category_by_ID()

Retrieves category name based on category ID.

$cat_id
get_the_category_list()

Retrieves category list for a post in either HTML list or custom format.

$separator $parents $post_id
in_category()

Checks if the current post is within any of the given categories.

$category $post
the_category()

Displays category list for a post in either HTML list or custom format.

$separator $parents $post_id
category_description()

Retrieves category description.

$category
wp_dropdown_categories()

Displays or retrieves the HTML dropdown list of categories.

$args
wp_list_categories()

Displays or retrieves the HTML list of categories.

$args
wp_tag_cloud()

Displays a tag cloud.

$args
default_topic_count_scale()

Default topic count scaling for tag links.

$count
wp_generate_tag_cloud()

Generates a tag cloud (heatmap) from provided data.

$tags $args
_wp_object_name_sort_cb()

Serves as a callback for comparing objects based on name.

$a $b
_wp_object_count_sort_cb()

Serves as a callback for comparing objects based on count.

$a $b
walk_category_tree()

Retrieves HTML list content for category list.

$args
walk_category_dropdown_tree()

Retrieves HTML dropdown (select) content for category list.

$args
get_tag_link()

Retrieves the link to the tag.

$tag
get_the_tags()

Retrieves the tags for a post.

$post
get_the_tag_list()

Retrieves the tags for a post formatted as a string.

$before $sep $after +1 more
the_tags()

Displays the tags for a post.

$before $sep $after
tag_description()

Retrieves tag description.

$tag
term_description()

Retrieves term description.

$term $deprecated
get_the_terms()

Retrieves the terms of the taxonomy that are attached to the post.

$post $taxonomy
get_the_term_list()

Retrieves a post's terms as a list with specified format.

$post_id $taxonomy $before +2 more
get_term_parents_list()

Retrieves term parents with separator.

$term_id $taxonomy $args
the_terms()

Displays the terms for a post in a list.

$post_id $taxonomy $before +2 more
has_category()

Checks if the current post has any of given category.

$category $post
has_tag()

Checks if the current post has any of given tags.

$tag $post
has_term()

Checks if the current post has any of given terms.

$term $taxonomy $post
has_post_thumbnail()

Determines whether a post has an image attached.

$post
get_post_thumbnail_id()

Retrieves the post thumbnail ID.

$post
the_post_thumbnail()

Displays the post thumbnail.

$size $attr
update_post_thumbnail_cache()

Updates cache for thumbnails in the current loop.

$wp_query
get_the_post_thumbnail()

Retrieves the post thumbnail.

$post $size $attr
get_the_post_thumbnail_url()

Returns the post thumbnail URL.

$post $size
the_post_thumbnail_url()

Displays the post thumbnail URL.

$size
get_the_post_thumbnail_caption()

Returns the post thumbnail caption.

$post
the_post_thumbnail_caption()

Displays the post thumbnail caption.

$post
wp_get_themes()

Returns an array of WP_Theme objects based on the arguments.

$args
wp_get_theme()

Gets a WP_Theme object for a theme.

$stylesheet $theme_root
wp_clean_themes_cache()

Clears the cache held by get_theme_roots() and WP_Theme.

$clear_update_cache
is_child_theme()

Whether a child theme is in use.

get_stylesheet()

Retrieves name of the current stylesheet.

get_stylesheet_directory()

Retrieves stylesheet directory path for the active theme.

get_stylesheet_directory_uri()

Retrieves stylesheet directory URI for the active theme.

get_stylesheet_uri()

Retrieves stylesheet URI for the active theme.

get_locale_stylesheet_uri()

Retrieves the localized stylesheet URI.