woocommerce_blocks_admin_unsupported_wp_notice()WC 2.5.0

Outputs for an admin notice about running WooCommerce Blocks on outdated WordPress.

Хуков нет.


null. Ничего.



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

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

Код woocommerce_blocks_admin_unsupported_wp_notice() WC 7.7.2

function woocommerce_blocks_admin_unsupported_wp_notice() {
	if ( should_display_compatibility_notices() ) {
		<div class="notice notice-error">
			<p><?php esc_html_e( 'The WooCommerce Blocks feature plugin requires a more recent version of WordPress and has been paused. Please update WordPress to continue enjoying WooCommerce Blocks.', 'woocommerce' ); ?></p>