WC_Tax_Rate_Importer::import_error()privateWC 1.0

Show import error and quit.

Method of the class: WC_Tax_Rate_Importer{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->import_error( $message );
$message(string)
Error message.
Default: ''

WC_Tax_Rate_Importer::import_error() code WC 8.7.0

private function import_error( $message = '' ) {
	echo '<p><strong>' . esc_html__( 'Sorry, there has been an error.', 'woocommerce' ) . '</strong><br />';
	if ( $message ) {
		echo esc_html( $message );
	}
	echo '</p>';
	$this->footer();
	die();
}