Problem using role_has_cap hook
I finally figured it out: To start with, I was using the wrong hook. I should have been using user_has_cap hook instead, which is what actually has a chance of being called when using current_user_can(). But second, and most important of all, I was seeing the page while logged-in as super_admin, which didn’t trigger the … Read more