Support » Plugin: Extra User Details » How to display the correct values in the frontend

  • Albert

    (@planetshaker)



    Took me a bit to get this out, since there is no help online.

    I wrote a little function and pasted it into my functions.php:

    function extra_user_info() {
    		global $current_user;
    			get_currentuserinfo();
    
    		echo 'Your extra user info is' . $current_user->PUT_YOU_ID_HERE ;      		
    
    	}
    
    add_action ('NAME_OF_HOOK_WHERE_YOU_WANT_IT', 'extra_user_info', 20);
  • The topic ‘How to display the correct values in the frontend’ is closed to new replies.