WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

WC_Email_Customer_Refunded_Order::trigger() public WC 1.0

Trigger.

{} Это метод класса: WC_Email_Customer_Refunded_Order{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WC_Email_Customer_Refunded_Order = new WC_Email_Customer_Refunded_Order();
$WC_Email_Customer_Refunded_Order->trigger( $order_id, $partial_refund, $refund_id );
$order_id(число) (обязательный)
Order ID.
$partial_refund(true/false)
Whether it is a partial refund or a full refund.
По умолчанию: false
$refund_id(число)
Refund ID.
По умолчанию: null

Код WC_Email_Customer_Refunded_Order::trigger() WC 4.7.1

<?php
public function trigger( $order_id, $partial_refund = false, $refund_id = null ) {
	$this->setup_locale();
	$this->partial_refund = $partial_refund;
	$this->id             = $this->partial_refund ? 'customer_partially_refunded_order' : 'customer_refunded_order';

	if ( $order_id ) {
		$this->object                         = wc_get_order( $order_id );
		$this->recipient                      = $this->object->get_billing_email();
		$this->placeholders['{order_date}']   = wc_format_datetime( $this->object->get_date_created() );
		$this->placeholders['{order_number}'] = $this->object->get_order_number();
	}

	if ( ! empty( $refund_id ) ) {
		$this->refund = wc_get_order( $refund_id );
	} else {
		$this->refund = false;
	}

	if ( $this->is_enabled() && $this->get_recipient() ) {
		$this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );
	}

	$this->restore_locale();
}