<?php
/**
 * Customer approval notification
 *
 * @version 3.0.6
 */

defined( 'ABSPATH' ) || exit;

$user = get_userdata( $user_id );

do_action( 'woocommerce_email_header', $email_heading, $email );

?>

<p><?php
/* translators: %s: Customer first name */
printf( esc_html__( 'Hi %s,', 'commercebird' ), esc_html( $user->first_name ) ); ?></p>
<p><?php esc_html_e( 'Your account is approved and you are now able to purchase.', 'commercebird' ); ?></p>
<p><?php
/* translators: %s: My account page URL */
printf( esc_html__( 'You can now start purchasing and access your account area at: %s', 'commercebird' ), wp_kses_post( make_clickable( esc_url( wc_get_page_permalink( 'myaccount' ) ) ) ) ); ?></p>

<?php
if ( $additional_content ) {
	echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
}
?>

<?php do_action( 'woocommerce_email_footer', $email ); ?>