woocommerce_output_all_notices()WC 3.5.0

Outputs all queued notices on WC pages.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

woocommerce_output_all_notices();

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

С версии 3.5.0 Введена.

Код woocommerce_output_all_notices() WC 11.0.1

function woocommerce_output_all_notices() {
	if ( ! function_exists( 'wc_print_notices' ) ) {
		wc_doing_it_wrong(
			__FUNCTION__,
			'Function should only be used during frontend requests.',
			'9.8.0'
		);
		return;
	}

	echo '<div class="woocommerce-notices-wrapper">';
	wc_print_notices();
	echo '</div>';
}