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

WC_Email_Customer_On_Hold_Order::trigger() public WC 1.0

Trigger the sending of this email.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Email_Customer_On_Hold_Order = new WC_Email_Customer_On_Hold_Order();
$WC_Email_Customer_On_Hold_Order->trigger( $order_id, $order );
$order_id(число) (обязательный)
The order ID.
$order(WC_Order/false)
Order object.
По умолчанию: false

Код WC_Email_Customer_On_Hold_Order::trigger() WC 4.7.0

<?php
public function trigger( $order_id, $order = false ) {
	$this->setup_locale();

	if ( $order_id && ! is_a( $order, 'WC_Order' ) ) {
		$order = wc_get_order( $order_id );
	}

	if ( is_a( $order, 'WC_Order' ) ) {
		$this->object                         = $order;
		$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 ( $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();
}