- This topic has 1 reply, 2 voices, and was last updated 3 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Tagged: secondary roles
I do not receive the secondary roles of the user,
in this declaration wp_get_current_user()->roles i receive only primary role. How can I get secondary roles of the user?
Hi Greta,
“roles” is an array, which contains all the roles.
Thanks
Syam