wp_update_php_annotation()WP 5.1.0

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.

Хуков нет.


null. Ничего.


wp_update_php_annotation( $before );
Markup to output before the annotation.
По умолчанию: <p class="description">

Список изменений

С версии 5.1.0 Введена.
С версии 5.2.0 Added the $before and $after parameters.

Код wp_update_php_annotation() WP 6.1.1

function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>' ) {
	$annotation = wp_get_update_php_annotation();

	if ( $annotation ) {
		echo $before . $annotation . $after;