WC_Email::get_content()
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() WC Email::get content code WC 9.7.1
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; }