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 2901 to 2950 of 4125 functions (Page 59 of 83)
get_avatar_data()

Retrieves default data about the avatar.

$id_or_email $args
get_theme_file_uri()

Retrieves the URL of a file in the theme.

$file
get_parent_theme_file_uri()

Retrieves the URL of a file in the parent theme.

$file
get_theme_file_path()

Retrieves the path of a file in the theme.

$file
get_parent_theme_file_path()

Retrieves the path of a file in the parent theme.

$file
get_privacy_policy_url()

Retrieves the URL to the privacy policy page.

the_privacy_policy_link()

Displays the privacy policy link with formatting, when applicable.

$before $after
get_the_privacy_policy_link()

Returns the privacy policy link with formatting, when applicable.

$before $after
wp_internal_hosts()

Returns an array of URL hosts which are considered to be internal hosts.

wp_is_internal_link()

Determines whether or not the specified URL is of a host included in the internal hosts list.

$link
wp_is_using_https()

Checks whether the website is using HTTPS.

wp_is_home_url_using_https()

Checks whether the current site URL is using HTTPS.

wp_is_site_url_using_https()

Checks whether the current site's URL where WordPress is stored is using HTTPS.

wp_is_https_supported()

Checks whether HTTPS is supported for the server and domain.

wp_get_https_detection_errors()

Runs a remote HTTPS request to detect whether HTTPS supported, and stores potential errors.

wp_is_local_html_output()

Checks whether a given HTML string is likely an output from this WordPress site.

$html
wp_get_speculation_rules_configuration()

Returns the speculation rules configuration.

wp_get_speculation_rules()

Returns the full speculation rules data based on the configuration.

wp_print_speculation_rules()

Prints the speculation rules.

is_subdomain_install()

Whether a subdomain configuration is enabled.

wp_get_active_network_plugins()

Returns array of network plugin files to be included in global scope.

ms_site_check()

Checks status of current blog.

get_network_by_path()

Retrieves the closest matching network for a domain and path.

$domain $path $segments
get_site_by_path()

Retrieves the closest matching site object by its domain and path.

$domain $path $segments
ms_load_current_site_and_network()

Identifies the network and site of a requested domain and path and populates the

$domain $path $subdomain
ms_not_installed()

Displays a failure message.

$domain $path
get_current_site_name()

This deprecated function formerly set the site_name property of the $current_site object.

$current_site
wpmu_current_site()

This deprecated function managed much of the site and network loading in multisite.

wp_get_network()

Retrieves an object containing information about the requested network.

$network
wp_script_modules()

Retrieves the main WP_Script_Modules instance.

wp_register_script_module()

Registers the script module if no script module with that script module

$id $src $deps +1 more
wp_enqueue_script_module()

Marks the script module to be enqueued in the page.

$id $src $deps +1 more
wp_dequeue_script_module()

Unmarks the script module so it is no longer enqueued in the page.

$id
wp_deregister_script_module()

Deregisters the script module.

$id
wp_default_script_modules()

Registers all the default WordPress Script Modules.

wp_is_mobile()

Test if the current browser runs on a mobile device (smart phone, tablet, etc.).

wp_embed_register_handler()

Registers an embed handler.

$id $regex $callback +1 more
wp_embed_unregister_handler()

Unregisters a previously-registered embed handler.

$id $priority
wp_embed_defaults()

Creates default array of embed parameters.

$url
wp_oembed_get()

Attempts to fetch the embed HTML for a provided URL using oEmbed.

$url $args
_wp_oembed_get_object()

Returns the initialized WP_oEmbed object.

wp_oembed_add_provider()

Adds a URL format and oEmbed provider URL pair.

$format $provider $regex
wp_oembed_remove_provider()

Removes an oEmbed provider.

$format
wp_maybe_load_embeds()

Determines if default embed handlers should be loaded.

wp_embed_handler_youtube()

YouTube iframe embed handler callback.

$matches $attr $url +1 more
wp_embed_handler_audio()

Audio embed handler callback.

$matches $attr $url +1 more
wp_embed_handler_video()

Video embed handler callback.

$matches $attr $url +1 more
wp_oembed_register_route()

Registers the oEmbed REST API route.

wp_oembed_add_discovery_links()

Adds oEmbed discovery links in the head element of the website.

wp_oembed_add_host_js()

Adds the necessary JavaScript to communicate with the embedded iframes.