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 1051 to 1100 of 4125 functions (Page 22 of 83)
wp_unique_id()

Gets unique ID.

$prefix
wp_unique_prefixed_id()

Generates an incremental ID that is independent per each different prefix.

$prefix
wp_cache_get_last_changed()

Gets last changed date for the specified cache group.

$group
wp_cache_set_last_changed()

Sets last changed date for the specified cache group to now.

$group
wp_site_admin_email_change_notification()

Sends an email to the old site admin email address when the site admin email address changes.

$old_email $new_email $option_name
wp_privacy_anonymize_ip()

Returns an anonymized IPv4 or IPv6 address.

$ip_addr $ipv6_fallback
wp_privacy_anonymize_data()

Returns uniform "anonymous" data by type.

$type $data
wp_privacy_exports_dir()

Returns the directory used to store personal data export files.

wp_privacy_exports_url()

Returns the URL of the directory used to store personal data export files.

wp_schedule_delete_old_privacy_export_files()

Schedules a `WP_Cron` job to delete expired export files.

wp_privacy_delete_old_export_files()

Cleans up export files older than three days old.

wp_get_update_php_url()

Gets the URL to learn more about updating the PHP version the site is running on.

wp_get_default_update_php_url()

Gets the default URL to learn more about updating the PHP version the site is running on.

wp_update_php_annotation()

Prints the default annotation for the web host altering the "Update PHP" page URL.

$before $after $display
wp_get_update_php_annotation()

Returns the default annotation for the web hosting altering the "Update PHP" page URL.

wp_get_direct_php_update_url()

Gets the URL for directly updating the PHP version the site is running on.

wp_direct_php_update_button()

Displays a button directly linking to a PHP update process.

wp_get_update_https_url()

Gets the URL to learn more about updating the site to use HTTPS.

wp_get_default_update_https_url()

Gets the default URL to learn more about updating the site to use HTTPS.

wp_get_direct_update_https_url()

Gets the URL for directly updating the site to use HTTPS.

get_dirsize()

Gets the size of a directory.

$directory $max_execution_time
recurse_dirsize()

Gets the size of a directory recursively.

$directory $exclude $max_execution_time +1 more
clean_dirsize_cache()

Cleans directory size cache used by recurse_dirsize().

$path
wp_get_wp_version()

Returns the current WordPress version.

is_wp_version_compatible()

Checks compatibility with the current WordPress version.

$required
is_php_version_compatible()

Checks compatibility with the current PHP version.

$required
wp_fuzzy_number_match()

Checks if two numbers are nearly the same.

$expected $actual $precision
wp_get_admin_notice()

Creates and returns the markup for an admin notice.

$message $args
wp_admin_notice()

Outputs an admin notice.

$message $args
wp_is_heic_image_mime_type()

Checks if a mime type is for a HEIC/HEIF image.

$mime_type
wp_fast_hash()

Returns a cryptographically secure hash of a message using a fast generic hash function.

$message
wp_verify_fast_hash()

Checks whether a plaintext message matches the hashed value. Used to verify values hashed via wp_fast_hash().

$message $hash
wp_unique_id_from_values()

Generates a unique ID based on the structure and values of a given array.

$data $prefix
fetch_rss()

Build Magpie object based on RSS from URL.

$url
_fetch_remote_file()

Retrieve URL headers and content using WP HTTP Request API.

$url $headers
_response_to_rss()

Retrieve

$resp
init()

Set up constants with default values, unless user overrides.

is_info()
$sc
is_success()
$sc
is_redirect()
$sc
is_error()
$sc
is_client_error()
$sc
is_server_error()
$sc
parse_w3cdtf()
$date_str
wp_rss()

Display all RSS items in a HTML ordered list.

$url $num_items
get_rss()

Display RSS items in HTML list items.

$url $num_items
wp_get_theme_preview_path()

Filters the blog option to return the path for the previewed theme.

$current_stylesheet
wp_attach_theme_preview_middleware()

Adds a middleware to `apiFetch` to set the theme for the preview.

wp_block_theme_activate_nonce()

Set a JavaScript constant for theme activation.

wp_initialize_theme_preview_hooks()

Add filters and actions to enable Block Theme Previews in the Site Editor.