File: wp-includes/functions.php
-
functionwp_upload_bits()
Creates a file in the upload folder with given content.
-
hookupload_mimes
Filters the list of allowed mime types and file extensions.
-
hookwp_upload_bits
Filters whether to treat the upload bits as an error.
-
functionwp_nonce_ays()
Displays “Are You Sure” message to confirm the action being taken.
-
functionpath_is_absolute()
Tests if a given filesystem path is absolute.
-
hookdo_robotstxt
Fires when displaying the robots.txt file.
-
functionpath_join()
Joins two filesystem paths together.
-
hookrobots_txt
Filters the robots.txt output.
-
functionwp_normalize_path()
Normalizes a filesystem path.
-
functionis_blog_installed()
Determines whether WordPress is already installed.
-
functionget_temp_dir()
Determines a writable directory for temporary files.
-
functionwp_nonce_url()
Retrieves URL with nonce added to URL query.
-
functionwp_is_writable()
Determines if a directory is writable.
-
functionwp_nonce_field()
Retrieves or display nonce hidden field for forms.
-
functionwin_is_writable()
Workaround for Windows bug in is_writable() function
-
functionwp_referer_field()
Retrieves or displays referer hidden field for forms.
-
functionwp_upload_dir()
Returns an array containing the current upload directory’s path and URL.
-
functionwp_original_referer_field()
Retrieves or displays original referer hidden field for forms.
-
hookupload_dir
Filters the uploads directory data.
-
functionwp_get_referer()
Retrieves referer from ‘_wp_http_referer’ or HTTP referer.
-
functionwp_unique_filename()
Gets a filename that is sanitized and unique for the given directory.
-
functionwp_get_original_referer()
Retrieves original referer that was posted, if it exists.
-
functionwp_mkdir_p()
Recursive directory creation based on full path.
-
functiondo_robots()
Displays the default robots.txt file content.
-
hooknocache_headers
Filters the cache-controlling HTTP headers that are used to prevent caching.
-
functionnocache_headers()
Sets the HTTP headers to prevent caching for the different browsers.
-
functionadd_query_arg()
Retrieves a modified URL query string.
-
functioncache_javascript_headers()
Sets the HTTP headers for caching for 10 days with JavaScript content type.
-
functionremove_query_arg()
Removes an item or items from a query string.
-
functionget_num_queries()
Retrieves the number of database queries during the WordPress execution.