Wordpress WooCommerce自定义模板预览-计费电子邮件';邮寄至';未显示

Wordpress WooCommerce自定义模板预览-计费电子邮件';邮寄至';未显示,wordpress,woocommerce,Wordpress,Woocommerce,我正在尝试预览我创建的WooCommerce电子邮件模板。除了账单邮件外,一切正常。账单电子邮件在预览中不会显示为链接,但在用于电子邮件时会正确显示。有什么我要补充的吗 public function preview_email( $id ){ $order = wc_get_order( $id ); $file = $this->get_template(); if( file_exists( $file ) ){ include( $file

我正在尝试预览我创建的WooCommerce电子邮件模板。除了账单邮件外,一切正常。账单电子邮件在预览中不会显示为链接,但在用于电子邮件时会正确显示。有什么我要补充的吗

public function preview_email( $id ){
    $order = wc_get_order( $id );
    $file = $this->get_template();
    if( file_exists( $file ) ){
        include( $file );
    }
}
帐单地址的模板代码

<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
    <tr>
        <td align="center" valign="top" style="background-color: #f7f7f7; padding: 70px 0;">
            <address class="address">
                <?php

                    $address = $order->get_formatted_billing_address();
                    echo wp_kses_post( $address ? $address : esc_html__( 'N/A', 'woocommerce' ) );

                    if ( $order->get_billing_phone() ) : ?>
                        <br/><?php echo wc_make_phone_clickable( $order->get_billing_phone() ); 
                    endif;
                        
                    if ( $order->get_billing_email() ) : ?>
                        <br/><?php echo esc_html( $order->get_billing_email() ); 
                    endif; ?>
            </address>
        </td>
    </tr>
</table>