Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_get_update_php_annotation ›

Desde5.2.0
Obsoleton/a
wp_get_update_php_annotation ( Sem parâmetros )
Retorna:
  • (string) $message Update PHP page annotation. An empty string if no custom URLs are provided.
Definido em:
Codex:

Returns the default annotation for the web hosting altering the "Update PHP" page URL.

This function is to be used after Ver página de detalhe para wp_get_update_php_url »

" href="https://pt.wpseek.com/function/wp_get_update_php_url/">wp_get_update_php_url to return a consistent annotation if the web host has altered the default "Update PHP" page URL.



Fonte

function wp_get_update_php_annotation() {
	$update_url  = wp_get_update_php_url();
	$default_url = wp_get_default_update_php_url();

	if ( $update_url === $default_url ) {
		return '';
	}

	$annotation = sprintf(
		/* translators: %s: default Update PHP page URL */
		__( 'This resource is provided by your web host, and is specific to your site. For more information, <a href="%s" target="_blank">see the official WordPress documentation</a>.' ),
		esc_url( $default_url )
	);

	return $annotation;
}