Property | Type | Description | |
---|---|---|---|
$partial_refund | boolean | Is the order partial refunded? | |
$refund | WC_Order | boolean | Refund order. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
get_content_html ( ) : string | Get content html. | |
get_content_plain ( ) : string | Get content plain. | |
get_heading ( ) : string | Get email heading. | |
get_subject ( ) : string | Get email subject. | |
init_form_fields ( ) | Initialise settings form fields. | |
set_email_strings ( boolean $partial_refund = false ) | Set email strings. | |
trigger ( integer $order_id, boolean $partial_refund = false, integer $refund_id = null ) | Trigger. | |
trigger_full ( integer $order_id, integer $refund_id = null ) | Full refund notification. | |
trigger_partial ( integer $order_id, integer $refund_id = null ) | Partial refund notification. |
public get_content_html ( ) : string | ||
return | string |
public get_content_plain ( ) : string | ||
return | string |
public set_email_strings ( boolean $partial_refund = false ) | ||
$partial_refund | boolean |
public trigger_full ( integer $order_id, integer $refund_id = null ) | ||
$order_id | integer | |
$refund_id | integer |
public trigger_partial ( integer $order_id, integer $refund_id = null ) | ||
$order_id | integer | |
$refund_id | integer |
public bool $partial_refund | ||
return | boolean |