WC_Tax_Rate_Importer::import_error()
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() WC Tax Rate Importer::import error code WC 9.7.1
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(); }