PHP Класс WC_Email_Customer_Refunded_Order

Order refunded emails are sent to the customer when the order is marked refunded.
Автор: WooThemes
Наследование: extends WC_Email
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$partial_refund boolean Is the order partial refunded?
$refund WC_Order | boolean Refund order.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

get_content_html() публичный Метод

Get content html.
public get_content_html ( ) : string
Результат string

get_content_plain() публичный Метод

Get content plain.
public get_content_plain ( ) : string
Результат string

get_heading() публичный Метод

Get email heading.
public get_heading ( ) : string
Результат string

get_subject() публичный Метод

Get email subject.
public get_subject ( ) : string
Результат string

init_form_fields() публичный Метод

Initialise settings form fields.
public init_form_fields ( )

set_email_strings() публичный Метод

Set email strings.
public set_email_strings ( boolean $partial_refund = false )
$partial_refund boolean

trigger() публичный Метод

Trigger.
public trigger ( integer $order_id, boolean $partial_refund = false, integer $refund_id = null )
$order_id integer
$partial_refund boolean
$refund_id integer

trigger_full() публичный Метод

Full refund notification.
public trigger_full ( integer $order_id, integer $refund_id = null )
$order_id integer
$refund_id integer

trigger_partial() публичный Метод

Partial refund notification.
public trigger_partial ( integer $order_id, integer $refund_id = null )
$order_id integer
$refund_id integer

Описание свойств

$partial_refund публичное свойство

Is the order partial refunded?
public bool $partial_refund
Результат boolean

$refund публичное свойство

Refund order.
public WC_Order|bool $refund
Результат WC_Order | boolean