I created a page in wordpress and i tried to access the current logged in user via wp_get_current_user() and am getting error "function undefined". please how do I make this function available in my page.
You can use following..
Than you can access everything as
Here is explanation...