Prints the default annotation for the web host altering the “Update PHP” page URL.
This function is to be used after wp_get_update_php_url() to display a consistent annotation if the web host has altered the default "Update PHP" page URL.
$beforestringoptional
<p class="description">.Default:'<p class="description">'
$afterstringoptional
</p>.Default:'</p>'
$displaybooloptional
true for echo.Default:true
function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>', $display = true ) {
$annotation = wp_get_update_php_annotation();
if ( $annotation ) {
if ( $display ) {
echo $before . $annotation . $after;
} else {
return $before . $annotation . $after;
}
}
}
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_update_php_annotation