WC_Emails::wrap_message PHP Method

wrap_message() public method

Wraps a message in the woocommerce mail template.
public wrap_message ( mixed $email_heading, string $message, $plain_text = false ) : string
$email_heading mixed
$message string
return string
    public function wrap_message($email_heading, $message, $plain_text = false)
    {
        // Buffer
        ob_start();
        do_action('woocommerce_email_header', $email_heading);
        echo wpautop(wptexturize($message));
        do_action('woocommerce_email_footer');
        // Get contents
        $message = ob_get_clean();
        return $message;
    }