WC_Coupon::set_error_message()publicWC 1.0

Sets the error_message string.

Method of the class: WC_Coupon{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_error_message( $message );
$message(string) (required)
Message string.

WC_Coupon::set_error_message() code WC 9.4.2

public function set_error_message( string $message ) {
	$this->error_message = $message;
}