WC_Email_Customer_POS_Completed_Order::get_content_htmlpublicWC 1.0

Get content html.

Метод класса: WC_Email_Customer_POS_Completed_Order{}

Хуков нет.

Возвращает

Строку.

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

$WC_Email_Customer_POS_Completed_Order = new WC_Email_Customer_POS_Completed_Order();
$WC_Email_Customer_POS_Completed_Order->get_content_html();

Код WC_Email_Customer_POS_Completed_Order::get_content_html() WC 10.0.2

public function get_content_html() {
	$this->add_pos_customizations();
	add_action( 'woocommerce_pos_email_header', array( $this, 'email_header' ) );
	add_action( 'woocommerce_pos_email_footer', array( $this, 'email_footer' ) );
	$content = wc_get_template_html(
		$this->template_html,
		array(
			'order'                     => $this->object,
			'email_heading'             => $this->get_heading(),
			'additional_content'        => $this->get_additional_content(),
			'pos_store_name'            => $this->get_pos_store_name(),
			'pos_store_email'           => $this->get_pos_store_email(),
			'pos_store_phone_number'    => $this->get_pos_store_phone_number(),
			'pos_store_address'         => $this->get_pos_store_address(),
			'pos_refund_returns_policy' => $this->get_pos_refund_returns_policy(),
			'sent_to_admin'             => false,
			'plain_text'                => false,
			'email'                     => $this,
		)
	);
	$this->remove_pos_customizations();
	remove_action( 'woocommerce_pos_email_header', array( $this, 'email_header' ) );
	remove_action( 'woocommerce_pos_email_footer', array( $this, 'email_footer' ) );
	return $content;
}