File: wp-includes/functions.php
-
Filters the amount of storage space used by one directory and all its children, in megabytes.
-
functionclean_dirsize_cache()
Cleans directory size cache used by recurse_dirsize().
-
function_wp_array_get()
Accesses an array in depth based on a path of keys.
-
Filters the file list used for calculating a unique filename for a newly added file.
-
function_wp_check_existing_file_names()
Helper function to check if a file name could match an existing image sub-size file name.
-
functiondo_favicon()
Displays the favicon.ico file content.
-
hookdo_faviconico
Fires when serving the favicon.ico file.
-
functionwp_fuzzy_number_match()
Checks if two numbers are nearly the same.
-
functionwp_timezone_string()
Retrieves the timezone of the site as a string.
-
functionwp_timezone()
Retrieves the timezone of the site as a `DateTimeZone` object.
-
functionwp_date()
Retrieves the date, in localized format.
-
hookwp_date
Filters the date formatted based on the locale.
-
functioncurrent_datetime()
Retrieves the current time as an object using the site’s timezone.
-
functionis_wp_version_compatible()
Checks compatibility with the current WordPress version.
-
functionis_php_version_compatible()
Checks compatibility with the current PHP version.
-
functionwp_get_update_php_annotation()
Returns the default annotation for the web hosting altering the “Update PHP” page URL.
-
function_jsonp_wp_die_handler()
Kills WordPress execution and displays JSONP response with an error message.
-
function_xml_wp_die_handler()
Kills WordPress execution and displays XML response with an error message.
-
Filters the callback for killing WordPress execution for JSONP REST requests.
-
Filters the callback for killing WordPress execution for XML requests.
-
functionwp_get_direct_php_update_url()
Gets the URL for directly updating the PHP version the site is running on.
-
Filters the URL for directly updating the PHP version the site is running on from the host.
-
functionwp_direct_php_update_button()
Displays a button directly linking to a PHP update process.
-
functionwp_get_update_php_url()
Gets the URL to learn more about updating the PHP version the site is running on.
-
Filters the URL to learn more about updating the PHP version the site is running on.
-
functionwp_get_default_update_php_url()
Gets the default URL to learn more about updating the PHP version the site is running on.
-
functionwp_update_php_annotation()
Prints the default annotation for the web host altering the “Update PHP” page URL.
-
functionis_site_meta_supported()
Determines whether site meta is enabled.
-
functionwp_parse_list()
Converts a comma- or space-separated list of scalar values to an array.
-
function_json_wp_die_handler()
Kills WordPress execution and displays JSON response with an error message.