WC_Helper_Updater::print_update_row_message │ private static │ WC 11.2.0

Append a message to the update row Core renders for a plugin.

Core has already printed its own sentence, so the message is preceded by a space.

Method of the class: WC_Helper_Updater{}

No Hooks.

Returns

void. Nothing (null).

Usage

$result = WC_Helper_Updater::print_update_row_message( $notice ): void;
$notice(string) (required)
The notice text, which may contain a single link.

Changelog

Since 11.2.0 Introduced.

WC_Helper_Updater::print_update_row_message() code WC 11.2.2

private static function print_update_row_message( string $notice ): void {
	if ( '' === $notice ) {
		return;
	}

	echo ' ' . self::kses_notice( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- kses_notice() escapes.
}