Title: wp_get_default_update_php_url
Published: February 22, 2019
Last modified: February 24, 2026

---

# wp_get_default_update_php_url(): string

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Gets the default URL to learn more about updating the PHP version the site is running
on.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#description)󠁿

Do not use this function to retrieve this URL. Instead, use [wp_get_update_php_url()](https://developer.wordpress.org/reference/functions/wp_get_update_php_url/)
when relying on the URL.
This function does not allow modifying the returned URL,
and is only used to compare the actually used URL with the default one.

## 󠀁[Return](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#return)󠁿

 string Default URL to learn more about updating PHP.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#source)󠁿

    ```php
    function wp_get_default_update_php_url() {
    	return _x( 'https://wordpress.org/support/update-php/', 'localized PHP upgrade information page' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/functions.php#L8511)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/functions.php#L8511-L8513)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#related)󠁿

| Uses | Description | 
| [_x()](https://developer.wordpress.org/reference/functions/_x/)`wp-includes/l10n.php` |

Retrieves translated string with gettext context.

  |

| Used by | Description | 
| [wp_get_update_php_annotation()](https://developer.wordpress.org/reference/functions/wp_get_update_php_annotation/)`wp-includes/functions.php` |

Returns the default annotation for the web hosting altering the “Update PHP” page URL.

  | 
| [wp_get_update_php_url()](https://developer.wordpress.org/reference/functions/wp_get_update_php_url/)`wp-includes/functions.php` |

Gets the URL to learn more about updating the PHP version the site is running on.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_get_default_update_php_url/?output_format=md#changelog)󠁿

| Version | Description | 
| [5.1.0](https://developer.wordpress.org/reference/since/5.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_get_default_update_php_url%2F)
before being able to contribute a note or feedback.