WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 7914 | * Filters the URL to learn more about updating the PHP version the site is running on. |
| 7915 | * |
| 7916 | * Providing an empty string is not allowed and will result in the default URL being used. Furthermore |
| 7917 | * the page the URL links to should preferably be localized in the site language. |
| 7918 | * |
| 7919 | * @since 5.1.0 |
| 7920 | * |
| 7921 | * @param string $update_url URL to learn more about updating PHP. |
| 7922 | */ |
| 7923 | $update_url = apply_filters( 'wp_update_php_url', $update_url ); |
| 7924 | |
| 7925 | if ( empty( $update_url ) ) { |
| 7926 | $update_url = $default_url; |
| 7927 | } |
| 7928 | |
| 7929 | return $update_url; |
| 7930 | } |
| 7931 | |
| 7932 | /** |