Overriding wc_add_notice() text
-
I am trying to override the text that gets shown when a returning customer logs in while at the checkout. The text is:
wc_add_notice( sprintf( __( 'You are now logged in as <strong>%s</strong>', 'woocommerce' ), $user->display_name ) );
and is from line #811 in:
includes/class-wc-form-handler.php
Instead of the display_name, I would like to show first_name. I can’t figure out how one can override the text string though?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Overriding wc_add_notice() text’ is closed to new replies.