On this page
wp_update_php_annotation( string $before = '<p class="description">', string $after = '</p>' )
Prints the default annotation for the web host altering the “Update PHP” page URL.
Description
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.
Parameters
$beforestring Optional-
Markup to output before the annotation. Default
<p class="description">.Default:
'<p class="description">' $afterstring Optional-
Markup to output after the annotation. Default
</p>.Default:
'</p>'
Source
File: wp-includes/functions.php. View all references
function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>' ) {
$annotation = wp_get_update_php_annotation();
if ( $annotation ) {
echo $before . $annotation . $after;
}
}
Related
Uses
| Uses | Description |
|---|---|
| wp_get_update_php_annotation() wp-includes/functions.php | Returns the default annotation for the web hosting altering the “Update PHP” page URL. |
Used By
| Used By | Description |
|---|---|
| wp_dashboard_php_nag() wp-admin/includes/dashboard.php | Displays the PHP update nag. |
| WP_Customize_Theme_Control::content_template() wp-includes/customize/class-wp-customize-theme-control.php | Render a JS template for theme display. |
| customize_themes_print_templates() wp-admin/includes/theme.php | Prints JS templates for the theme-browsing UI in the Customizer. |
| WP_Plugins_List_Table::single_row() wp-admin/includes/class-wp-plugins-list-table.php | |
| wp_plugin_update_row() wp-admin/includes/update.php | Displays update information for a plugin. |
| wp_theme_update_row() wp-admin/includes/update.php | Displays update information for a theme. |
| install_plugin_information() wp-admin/includes/plugin-install.php | Displays plugin information in dialog box form. |
| WP_Plugin_Install_List_Table::display_rows() wp-admin/includes/class-wp-plugin-install-list-table.php |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_update_php_annotation