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?
- You must be logged in to reply to this topic.