jarrodwhitley Posted August 28, 2015 Share Posted August 28, 2015 <?php /** * Customer new account email * * @author WooThemes * @package WooCommerce/Templates/Emails * @version 1.6.4 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } ?> <?php do_action( 'woocommerce_email_header', $email_heading ); ?> <p><?php printf( __( "Thanks for creating an account on %s. Your username is <strong>%s</strong>.", 'woocommerce' ), esc_html( $blogname ), esc_html( $user_login ) ); ?></p> <?php if ( get_option( 'woocommerce_registration_generate_password' ) == 'yes' && $password_generated ) : ?> <p><?php printf( __( "Your password has been automatically generated: <strong>%s</strong>", 'woocommerce' ), esc_html( $user_pass ) ); ?></p> <?php endif; ?> <p><?php printf( __( 'You can access your account area to view your orders and change your password here: %s.', 'woocommerce' ), wc_get_page_permalink( 'myaccount' ) ); ?></p> <?php do_action( 'woocommerce_email_footer' ); ?> So, I want to link the word "here" in line 24 to the user's profile page. How would I do this? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
MutantJohn Posted August 28, 2015 Share Posted August 28, 2015 Are you not able to just type the anchor tag out manually in your print/echo statements? Like <a href="... Quote Link to comment Share on other sites More sharing options...
Solution gizmola Posted August 31, 2015 Solution Share Posted August 31, 2015 <p><?php printf( __( 'You can access your account area to view your orders and change your password here: %s.', 'woocommerce' ), wc_get_page_permalink( 'myaccount' ) ); ?></p> Needs to be changed to: <p><?php printf( __( 'You can access your account area to view your orders and change your password <a href="%s">here.</a>', 'woocommerce' ), wc_get_page_permalink( 'myaccount' ) ); ?></p> Quote Link to comment Share on other sites More sharing options...
jarrodwhitley Posted September 4, 2015 Author Share Posted September 4, 2015 @gizmola Brilliant! Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.