Just a quick filter request for a future version of WooCommerce if possible. Could you please add a filter on the title of the WooCommerce login widget.
The file in question is /woocommerce/widgets/widget-login.php. Line 65 currently reads:
if ( $logged_in_title ) echo $before_title . sprintf( $logged_in_title, ucwords($user->display_name) ) . $after_title;
would be great if it was wrapped in a filter hook like so:
if ( $logged_in_title ) echo apply_filters( 'woocomerce_login_widget_title', $before_title . sprintf( $logged_in_title, ucwords($user->display_name) ) . $after_title, $user );
with the before & after title params and the user as arguments so that I could modify this to be something else as needed. The particular use-case is that I'd like to change this to display the first name instead of the display name of the user.
Filters for login widget. Closes #1998.