WC_Coupon::set_error_message()
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() WC Coupon::set error message code WC 9.4.2
public function set_error_message( string $message ) { $this->error_message = $message; }