wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_update_php_annotation › WordPress Function

Seit5.1.0
Veraltetn/v
wp_update_php_annotation ( $before = '<p class="description">', $after = '</p>', $display = true )
Parameter: (3)
  • (string) $before Markup to output before the annotation. Default `&lt;p class=&quot;description&quot;&gt;`.
    Erforderlich: Nein
    Standard: '<p class="description">'
  • (string) $after Markup to output after the annotation. Default `&lt;/p&gt;`.
    Erforderlich: Nein
    Standard: '</p>'
  • (bool) $display Whether to echo or return the markup. Default `true` for echo.
    Erforderlich: Nein
    Standard: true
Gibt zurück:
  • (string|void)
Definiert in:
Codex:
Changelog:
  • 5.2.0
  • 6.4.0

Prints the default annotation for the web host altering the "Update PHP" page URL.

This function is to be used after {@see} to display a consistent annotation if the web host has altered the default "Update PHP" page URL.


Quellcode

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;
		}
	}
}