WordPress at Your Fingertips
function is not described

WC_Settings_API::display_errors() public WC 1.0

Display admin error messages.

{} It's a method of the class: WC_Settings_API{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Settings_API::display_errors() WC 5.8.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>';
	}
}