Testing user privileges
-
I have this code:
// check frontend user privileges $canEdit = is_user_logged_in() && (current_user_can('edit_posts') || current_user_can('edit_pages'));
But I am not sure it is right. Front end users who are logged in can’t create or edit posts on my site but they can create an edit forum topics and replies.
What is the correct syntax?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.