Modifying the header-login.php file

Hello, how could I modify this file without having a problem when updating the template?


It is currently like this in header-login.php:

echo '<h4>'. sprintf( __( 'Hello %s,', 'woocommerce' ), esc_html( wp_get_current_user()->user_login ) ) .'</h4>';

I would like to show the client's name

echo '<h4>'. sprintf (__ ('Hello% s,', 'woocommerce'), esc_html (wp_get_current_user () -> name)). '</h4>';


Regards

Comments

Sign In or Register to comment.