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 2201 to 2250 of 4125 functions (Page 45 of 83)
get_file()
$path
lowercase_octets()

Converts the first hex-encoded octet match to lowercase.

$matches
redirect_canonical()

Redirects incoming links to the proper URL based on the site url.

$requested_url $do_redirect
_remove_qs_args_if_not_in_url()

Removes arguments from a query string if they are not present in a URL

$query_string $args_to_check $url
strip_fragment_from_url()

Strips the #fragment from a URL, if one is present.

$url
redirect_guess_404_permalink()

Attempts to guess the correct URL for a 404 request based on query vars.

wp_redirect_admin_locations()

Redirects a variety of shorthand URLs to the admin.

wp_cache_init()

Sets up Object Cache Global and assigns it.

wp_cache_add()

Adds data to the cache, if the cache key doesn't already exist.

$key $data $group +1 more
wp_cache_add_multiple()

Adds multiple values to the cache in one call.

$data $group $expire
wp_cache_replace()

Replaces the contents of the cache with new data.

$key $data $group +1 more
wp_cache_set()

Saves the data to the cache.

$key $data $group +1 more
wp_cache_set_multiple()

Sets multiple values to the cache in one call.

$data $group $expire
wp_cache_get()

Retrieves the cache contents from the cache by key and group.

$key $group $force +1 more
wp_cache_get_multiple()

Retrieves multiple values from the cache in one call.

$keys $group $force
wp_cache_delete()

Removes the cache contents matching key and group.

$key $group
wp_cache_delete_multiple()

Deletes multiple values from the cache in one call.

$keys $group
wp_cache_incr()

Increments numeric cache item's value.

$key $offset $group
wp_cache_decr()

Decrements numeric cache item's value.

$key $offset $group
wp_cache_flush()

Removes all cache items.

wp_cache_flush_runtime()

Removes all cache items from the in-memory runtime cache.

wp_cache_flush_group()

Removes all cache items in a group, if the object cache implementation supports it.

$group
wp_cache_supports()

Determines whether the object cache implementation supports a particular feature.

$feature
wp_cache_close()

Closes the cache.

wp_cache_add_global_groups()

Adds a group or set of groups to the list of global groups.

$groups
wp_cache_add_non_persistent_groups()

Adds a group or set of groups to the list of non-persistent groups.

$groups
wp_cache_switch_to_blog()

Switches the internal blog ID.

$blog_id
wp_cache_reset()

Resets internal cache keys and structures.

the_ID()

Displays the ID of the current item in the WordPress Loop.

get_the_ID()

Retrieves the ID of the current item in the WordPress Loop.

the_title()

Displays or retrieves the current post title with optional markup.

$before $after $display
the_title_attribute()

Sanitizes the current title when retrieving or displaying.

$args
get_the_title()

Retrieves the post title.

$post
the_guid()

Displays the Post Global Unique Identifier (guid).

$post
get_the_guid()

Retrieves the Post Global Unique Identifier (guid).

$post
the_content()

Displays the post content.

$more_link_text $strip_teaser
get_the_content()

Retrieves the post content.

$more_link_text $strip_teaser $post
the_excerpt()

Displays the post excerpt.

get_the_excerpt()

Retrieves the post excerpt.

$post
has_excerpt()

Determines whether the post has a custom excerpt.

$post
post_class()

Displays the classes for the post container element.

$css_class $post
get_post_class()

Retrieves an array of the class names for the post container element.

$css_class $post
body_class()

Displays the class names for the body element.

$css_class
get_body_class()

Retrieves an array of the class names for the body element.

$css_class
post_password_required()

Determines whether the post requires password and whether a correct password has been provided.

$post
wp_link_pages()

The formatted output of a list of pages.

$args
_wp_link_page()

Helper function for wp_link_pages().

$i
post_custom()

Retrieves post custom meta data field.

$key
the_meta()

Displays a list of post custom fields.

wp_dropdown_pages()

Retrieves or displays a list of pages as a dropdown (select list).

$args