WC_Email::get_content()publicWC 1.0

Get email content.

Method of the class: WC_Email{}

No Hooks.

Return

String.

Usage

$WC_Email = new WC_Email();
$WC_Email->get_content();

WC_Email::get_content() code WC 8.7.0

public function get_content() {
	$this->sending = true;

	if ( 'plain' === $this->get_email_type() ) {
		$email_content = wordwrap( preg_replace( $this->plain_search, $this->plain_replace, wp_strip_all_tags( $this->get_content_plain() ) ), 70 );
	} else {
		$email_content = $this->get_content_html();
	}

	return $email_content;
}