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

---

# apply_filters( ‘wp_update_php_url’, string $update_url )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/wp_update_php_url/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_update_php_url/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_update_php_url/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_update_php_url/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_update_php_url/?output_format=md#changelog)

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

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

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

Providing an empty string is not allowed and will result in the default URL being
used. Furthermore the page the URL links to should preferably be localized in the
site language.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_update_php_url/?output_format=md#parameters)󠁿

 `$update_url`string

URL to learn more about updating PHP.

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

    ```php
    $update_url = apply_filters( 'wp_update_php_url', $update_url );
    ```

[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#L8490)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/functions.php#L8490-L8490)

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

| Used by | Description | 
| [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/hooks/wp_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%2Fhooks%2Fwp_update_php_url%2F)
before being able to contribute a note or feedback.