Description
A URL will only be returned if the WP_DIRECT_UPDATE_PHP_URL
environment variable is specified or by using the ‘wp_direct_php_update_url’ filter. This allows hosts to send users directly to the page where they can update PHP to a newer version.
Return
(string) URL for directly updating PHP or empty string.
Source
File: wp-includes/functions.php
function wp_get_direct_php_update_url() {
$direct_update_url = '';
if ( false !== getenv( 'WP_DIRECT_UPDATE_PHP_URL' ) ) {
$direct_update_url = getenv( 'WP_DIRECT_UPDATE_PHP_URL' );
}
$direct_update_url = apply_filters( 'wp_direct_php_update_url', $direct_update_url );
return $direct_update_url;
}
Changelog
Version | Description |
5.1.1 | Introduced. |