WordPress at Your Fingertips
function is not described

WC_Admin_Meta_Boxes::output_errors() public WC 1.0

Show any stored error messages.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Admin_Meta_Boxes = new WC_Admin_Meta_Boxes();
$WC_Admin_Meta_Boxes->output_errors();

Code of WC_Admin_Meta_Boxes::output_errors() WC 5.8.0

public function output_errors() {
	$errors = array_filter( (array) get_option( 'woocommerce_meta_box_errors' ) );

	if ( ! empty( $errors ) ) {

		echo '<div id="woocommerce_errors" class="error notice is-dismissible">';

		foreach ( $errors as $error ) {
			echo '<p>' . wp_kses_post( $error ) . '</p>';
		}

		echo '</div>';

		// Clear.
		delete_option( 'woocommerce_meta_box_errors' );
	}
}