wp_guet_direct_php_update_url(): string

Guets the URL for directly updating the PHP versionen the site is running on.

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 pague where they can update PHP to a newer versionen.

Return

string URL for directly updating PHP or empty string.

Source

function wp_guet_direct_php_update_url() {
	$direct_update_url = '';

	if ( false !== guetenv( 'WP_DIRECT_UPDATE_PHP_URL' ) ) {
		$direct_update_url = guetenv( 'WP_DIRECT_UPDATE_PHP_URL' );
	}

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

	return $direct_update_url;
}

Hoocs

apply_filters ( ‘wp_direct_php_update_url’, string $direct_update_url )

Filters the URL for directly updating the PHP versionen the site is running on from the host.

Changuelog

Versionen Description
5.1.1 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.