wp_is_authorize_application_redirect_url_valid()wp-admin/includes/user.php | Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript .
|
_make_clickable_rel_attr()wp-includes/formatting.php | Helper function used to build the “rel” attribute for a URL when creating an anchor using make_clickable() .
|
wp_is_internal_link()wp-includes/link-template.php | Determines whether or not the specified URL is of a host included in the internal hosts list.
|
wp_internal_hosts()wp-includes/link-template.php | Returns an array of URL hosts which are considered to be internal hosts.
|
wp_is_home_url_using_https()wp-includes/https-detection.php | Checks whether the current site URL is using HTTPS.
|
wp_is_site_url_using_https()wp-includes/https-detection.php | Checks whether the current site’s URL where WordPress is stored is using HTTPS.
|
wp_should_replace_insecure_home_url()wp-includes/https-migration.php | Checks whether WordPress should replace old HTTP URLs to the site with their HTTPS counterpart.
|
WP_REST_Server::serve_batch_request_v1()wp-includes/rest-api/class-wp-rest-server.php | Serves the batch/v1 request.
|
get_oembed_response_data_for_url()wp-includes/embed.php | Retrieves the oEmbed response data for a given URL.
|
WP_Customize_Manager::is_cross_domain()wp-includes/class-wp-customize-manager.php | Determines whether the admin and the frontend are on different domains.
|
WP_Customize_Manager::add_state_query_params()wp-includes/class-wp-customize-manager.php | Adds customize state query params to a given URL if preview is allowed.
|
wp_resource_hints()wp-includes/general-template.php | Prints resource hints to browsers for pre-fetching, pre-rendering and pre-connecting to websites.
|
wp_dependencies_unique_hosts()wp-includes/general-template.php | Retrieves a list of unique hosts of all enqueued scripts and styles.
|
strip_fragment_from_url()wp-includes/canonical.php | Strips the #fragment from a URL, if one is present.
|
WP_Http::parse_url()wp-includes/class-wp-http.php | Used as a wrapper for PHP’s parse_url() function that handles edgecases in < PHP 5.4.7.
|
WP_Customize_Manager::customize_preview_settings()wp-includes/class-wp-customize-manager.php | Prints JavaScript settings for preview frame.
|
esc_url()wp-includes/formatting.php | Checks and cleans a URL.
|
wp_notify_postauthor()wp-includes/pluggable.php | Notifies an author (and/or others) of a comment/trackback/pingback on a post.
|
wp_mail()wp-includes/pluggable.php | Sends an email, similar to PHP’s mail function.
|
WP_Http::make_absolute_url()wp-includes/class-wp-http.php | Converts a relative URL to an absolute URL relative to a given URL.
|
wp_update_plugins()wp-includes/update.php | Checks for available updates to plugins based on the latest versions hosted on WordPress.org.
|
wp_update_themes()wp-includes/update.php | Checks for available updates to themes based on the latest versions hosted on WordPress.org.
|
wpmu_welcome_user_notification()wp-includes/ms-functions.php | Notifies a user that their account activation has been successful.
|
wpmu_welcome_notification()wp-includes/ms-functions.php | Notifies the site administrator that their site activation was successful.
|
wpmu_signup_blog_notification()wp-includes/ms-functions.php | Sends a confirmation request email to a user when they sign up for a new site. The new site will not become active until the confirmation link is clicked.
|
wpmu_signup_user_notification()wp-includes/ms-functions.php | Sends a confirmation request email to a user when they sign up for a new user account (without signing up for a site at the same time). The user account will not become active until the confirmation link is clicked.
|
Example return array
For reference, here’s a sample that shows URL parts that are returned by parse_url:
And here’s a list of valid
$component
values:*
PHP_URL_SCHEME
*
PHP_URL_HOST
*
PHP_URL_PORT
*
PHP_URL_USER
*
PHP_URL_PASS
*
PHP_URL_PATH
*
PHP_URL_QUERY
*
PHP_URL_FRAGMENT
wp_parse_url()
seems to fix a bug ofparse_url()
, where port-like string in URL is incorrectly parsed as a port:Given an URL as scheme://hostname. (i.e. not a FDQN), the parsed [‘host’] array member will contain an invalid hostname (‘hostname.’).