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 901 to 950 of 4125 functions (Page 19 of 83)
get_status_header_desc()

Retrieves the description for the HTTP status.

$code
status_header()

Sets HTTP status header.

$code $description
wp_get_nocache_headers()

Gets the HTTP header information to prevent caching.

nocache_headers()

Sets the HTTP headers to prevent caching for the different browsers.

cache_javascript_headers()

Sets the HTTP headers for caching for 10 days with JavaScript content type.

get_num_queries()

Retrieves the number of database queries during the WordPress execution.

bool_from_yn()

Determines whether input is yes or no.

$yn
do_feed()

Loads the feed template from the use of an action hook.

do_feed_rdf()

Loads the RDF RSS 0.91 Feed template.

do_feed_rss()

Loads the RSS 1.0 Feed Template.

do_feed_rss2()

Loads either the RSS2 comment feed or the RSS2 posts feed.

$for_comments
do_feed_atom()

Loads either Atom comment feed or Atom posts feed.

$for_comments
do_robots()

Displays the default robots.txt file content.

do_favicon()

Displays the favicon.ico file content.

is_blog_installed()

Determines whether WordPress is already installed.

wp_nonce_url()

Retrieves URL with nonce added to URL query.

$actionurl $action $name
wp_nonce_field()

Retrieves or display nonce hidden field for forms.

$action $name $referer +1 more
wp_referer_field()

Retrieves or displays referer hidden field for forms.

$display
wp_original_referer_field()

Retrieves or displays original referer hidden field for forms.

$display $jump_back_to
wp_get_referer()

Retrieves referer from '_wp_http_referer' or HTTP referer.

wp_get_raw_referer()

Retrieves unvalidated referer from the '_wp_http_referer' URL query variable or the HTTP referer.

wp_get_original_referer()

Retrieves original referer that was posted, if it exists.

wp_mkdir_p()

Recursive directory creation based on full path.

$target
path_is_absolute()

Tests if a given filesystem path is absolute.

$path
path_join()

Joins two filesystem paths together.

$base $path
wp_normalize_path()

Normalizes a filesystem path.

$path
get_temp_dir()

Determines a writable directory for temporary files.

wp_is_writable()

Determines if a directory is writable.

$path
win_is_writable()

Workaround for Windows bug in is_writable() function

$path
wp_get_upload_dir()

Retrieves uploads directory information.

wp_upload_dir()

Returns an array containing the current upload directory's path and URL.

$time $create_dir $refresh_cache
_wp_upload_dir()

A non-filtered, non-cached version of wp_upload_dir() that doesn't check the path.

$time
wp_unique_filename()

Gets a filename that is sanitized and unique for the given directory.

$dir $filename $unique_filename_callback
_wp_check_alternate_file_names()

Helper function to test if each of an array of file names could conflict with existing files.

$filenames $dir $files
_wp_check_existing_file_names()

Helper function to check if a file name could match an existing image sub-size file name.

$filename $files
wp_upload_bits()

Creates a file in the upload folder with given content.

$name $deprecated $bits +1 more
wp_ext2type()

Retrieves the file type based on the extension name.

$ext
wp_get_default_extension_for_mime_type()

Returns first matched extension for the mime-type,

$mime_type
wp_check_filetype()

Retrieves the file type from the file name.

$filename $mimes
wp_check_filetype_and_ext()

Attempts to determine the real file type of a file.

$file $filename $mimes
wp_get_image_mime()

Returns the real mime type of an image file.

$file
wp_get_mime_types()

Retrieves the list of mime types and file extensions.

wp_get_ext_types()

Retrieves the list of common file extensions and their types.

wp_filesize()

Wrapper for PHP filesize with filters and casting the result as an integer.

$path
get_allowed_mime_types()

Retrieves the list of allowed mime types and file extensions.

$user
wp_nonce_ays()

Displays "Are You Sure" message to confirm the action being taken.

$action
wp_die()

Kills WordPress execution and displays HTML page with an error message.

$message $title $args
_default_wp_die_handler()

Kills WordPress execution and displays HTML page with an error message.

$message $title $args
_ajax_wp_die_handler()

Kills WordPress execution and displays Ajax response with an error message.

$message $title $args
_json_wp_die_handler()

Kills WordPress execution and displays JSON response with an error message.

$message $title $args