Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: BP 1.7 – what is this message intended for ?

@sbrajesh

Participant

Most probably the code you are using is trying to access logged in user’s data before init action. Since the current user is set on ‘set_current_user’ hook’ which is just before init, any function trying to access current user data should be called on or after init action.

Hope that helps.

Reference: https://codex.wordpress.org/Plugin_API/Action_Reference

Skip to toolbar