WC_Settings_API::display_errors()publicWC 1.0

Display admin error messages.

Method of the class: WC_Settings_API{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Settings_API = new WC_Settings_API();
$WC_Settings_API->display_errors();

WC_Settings_API::display_errors() code WC 8.7.0

public function display_errors() {
	if ( $this->get_errors() ) {
		echo '<div id="woocommerce_errors" class="error notice is-dismissible">';
		foreach ( $this->get_errors() as $error ) {
			echo '<p>' . wp_kses_post( $error ) . '</p>';
		}
		echo '</div>';
	}
}