<?php
/**
 * Email Button Template
 *
 * Renders a call-to-action button for email communications.
 *
 * @since 2.15.0
 * @package wc-affiliate
 * @var string $url Button link URL
 * @var string $text Button display text
 */

/**
 * Filter the button wrapper HTML
 *
 * @param string $wrapper_html The wrapper HTML with %s placeholders for URL and text
 * @param string $url The button URL
 * @param string $text The button text
 */
$wrapper_html = apply_filters( 'wc_affiliate_email_button_wrapper', '<div style="text-align: center; margin: 30px 0;"><a href="%s" class="button">%s</a></div>', $url, $text );

printf( $wrapper_html, esc_url( $url ), esc_html( $text ) );
