WordPress at Your Fingertips
function is not described

WC_Tax_Rate_Importer::import_error() private WC 1.0

Show import error and quit.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Tax_Rate_Importer::import_error() WC 5.9.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();
}