WordPress at a glance
function is not described

wp_get_direct_update_https_url() WP 5.7.0

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

A URL will only be returned if the WP_DIRECT_UPDATE_HTTPS_URL environment variable is specified or by using the 'wp_direct_update_https_url' filter. This allows hosts to send users directly to the page where they can update their site to use HTTPS.

Hooks from the function

String. URL for directly updating to HTTPS or empty string.




Since 5.7.0 Introduced.

Code of wp_get_direct_update_https_url() WP 5.7

function wp_get_direct_update_https_url() {
	$direct_update_url = '';

	if ( false !== getenv( 'WP_DIRECT_UPDATE_HTTPS_URL' ) ) {
		$direct_update_url = getenv( 'WP_DIRECT_UPDATE_HTTPS_URL' );

	 * Filters the URL for directly updating the PHP version the site is running on from the host.
	 * @since 5.7.0
	 * @param string $direct_update_url URL for directly updating PHP.
	$direct_update_url = apply_filters( 'wp_direct_update_https_url', $direct_update_url );

	return $direct_update_url;