WC_Email_Customer_POS_Completed_Order::get_content_html
Get content html.
Method of the class: WC_Email_Customer_POS_Completed_Order{}
No Hooks.
Returns
String.
Usage
$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 Email Customer POS Completed Order::get content html code WC 10.8.1
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;
}