WC_Shortcode_Checkout::print_notice
Print a notice inside the shared notices wrapper.
Метод класса: WC_Shortcode_Checkout{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WC_Shortcode_Checkout::print_notice( $message, $notice_type ): void;
- $message(строка) (обязательный)
- Notice text.
- $notice_type(строка) (обязательный)
- Notice type: error, success or notice.
Код WC_Shortcode_Checkout::print_notice() WC Shortcode Checkout::print notice WC 11.3.0
private static function print_notice( $message, $notice_type ): void {
echo '<div class="woocommerce-notices-wrapper">' . wc_print_notice( $message, $notice_type, array(), true ) . '</div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- wc_print_notice() returns kses-filtered markup.
}