File: wp-includes/functions.php
-
functionwp_die()
Kills WordPress execution and displays HTML page with an error message.
-
Filters the callback for killing WordPress execution for Ajax requests.
-
Filters the callback for killing WordPress execution for XML-RPC requests.
-
functionwp_upload_bits()
Creates a file in the upload folder with given content.
-
hookwp_die_handler
Filters the callback for killing WordPress execution for all non-Ajax, non-JSON, non-XML requests.
-
hookwp_upload_bits
Filters whether to treat the upload bits as an error.
-
function_default_wp_die_handler()
Kills WordPress execution and displays HTML page with an error message.
-
functionwp_ext2type()
Retrieves the file type based on the extension name.
-
function_xmlrpc_wp_die_handler()
Kills WordPress execution and displays XML response with an error message.
-
hookext2type
Filters file type based on the extension name.
-
function_ajax_wp_die_handler()
Kills WordPress execution and displays Ajax response with an error message.
-
functionwp_check_filetype()
Retrieves the file type from the file name.
-
functionwp_check_filetype_and_ext()
Attempts to determine the real file type of a file.
-
Filters the list mapping image mime types to their respective extensions.
-
Filters the “real” file type of the given file.
-
functionwp_get_mime_types()
Retrieves the list of mime types and file extensions.
-
functionwp_normalize_path()
Normalizes a filesystem path.
-
functionget_temp_dir()
Determines a writable directory for temporary files.
-
functionwp_is_writable()
Determines if a directory is writable.
-
functiondo_robots()
Displays the default robots.txt file content.
-
functionwin_is_writable()
Workaround for Windows bug in is_writable() function
-
hookdo_robotstxt
Fires when displaying the robots.txt file.
-
functionwp_upload_dir()
Returns an array containing the current upload directory’s path and URL.
-
hookrobots_txt
Filters the robots.txt output.
-
hookupload_dir
Filters the uploads directory data.
-
functionis_blog_installed()
Determines whether WordPress is already installed.
-
functionwp_unique_filename()
Gets a filename that is sanitized and unique for the given directory.
-
functionwp_nonce_url()
Retrieves URL with nonce added to URL query.
-
functionwp_nonce_field()
Retrieves or display nonce hidden field for forms.
-
functionwp_referer_field()
Retrieves or displays referer hidden field for forms.