<?php
/**
 * Email Greeting Template
 *
 * Renders a personalized greeting for email communications.
 *
 * @since 2.15.0
 * @package wc-affiliate
 * @var string $name Recipient's name
 */

/**
 * Filter the greeting wrapper HTML
 *
 * @param string $wrapper_html The wrapper HTML with %s placeholder for name
 * @param string $name The recipient's name
 */
$wrapper_html = apply_filters( 'wc_affiliate_email_greeting_wrapper', '<div class="greeting">Hello %s,</div>', $name );

printf( $wrapper_html, esc_html( $name ) );
