woocommerce/templates/shop/errors.php

18 lines
364 B
PHP

<?php
/**
* Show error messages
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.6.4
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! $errors ) return;
?>
<ul class="woocommerce_error">
<?php foreach ( $errors as $error ) : ?>
<li><?php echo wp_kses_post( $error ); ?></li>
<?php endforeach; ?>
</ul>