• Resolved huydz

    (@huydz)


    Hi devs, this is a great plugin.

    I want to display more information after login by Login Widget instead of this text “You are currently logged in as username”. Can I?

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @huydz,

    You can change that message with the following piece of code:

    add_filter('wppb_login_message', 'wppbc_change_login_message', 10, 3);
    function wppbc_change_login_message($logged_in_message, $user_id, $display_name){
    	//do stuff
    	return 'My new custom message';
    }

    You have the user_id available so you can get more data about the user if you wish. A thing to note would be that this is affecting all login forms, not just the widget one. We can’t target only that one.

    Regards.

Viewing 1 replies (of 1 total)

The topic ‘Login Widget?’ is closed to new replies.