0

How can I trigger error "You are not allowed to edit this post." when someone tries to edit the post?

1

Check or Alter user capabilities on call of current_user_can. Check current_user_can fucntion and has_cap fitler for further info.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.