# yaymail/4.4.5/templates/shortcodes/shipping-address/main.php

YayMail – WooCommerce Email Customizer, version 4.4.5. 28 lines.

- Page: https://pluginprobe.com/plugins/yaymail/4.4.5/code/templates/shortcodes/shipping-address/main.php
- Raw: https://pluginprobe.com/plugins/yaymail/4.4.5/raw/templates/shortcodes/shipping-address/main.php
- Modified: 2025-08-14T01:48:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/4.4.5/code/templates/shortcodes/shipping-address/main.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

use YayMail\Utils\Helpers;

if ( ! isset( $args['order'] ) || ! ( Helpers::is_woocommerce_order( $args['order'] ) ) ) {
    return;
}

$order_instance   = $args['order'];
$shipping_address = apply_filters( 'yaymail_shipping_address_content', $order_instance->get_formatted_shipping_address(), $order_instance );
if ( ! wc_ship_to_billing_address_only() && $order_instance->needs_shipping_address() && ! empty( $shipping_address ) ) :
    $shipping_phone = $order_instance->get_shipping_phone();
    ?>
    <address>
            <?php echo wp_kses_post( $shipping_address ); ?>
            <?php if ( ! empty( $shipping_phone ) ) : ?>
            <br/>
            <a href='tel:<?php echo esc_attr( $shipping_phone ); ?>' style="font-family: inherit">
                <?php echo esc_html( $shipping_phone ); ?>
            </a>
        <?php endif; ?>
    </address>
        <?php
endif;

```
