Change WordPress user roles and capabilities › Forums › How to or FAQ › php code to check if user have permissions on a post Tagged: check user role permissions, php This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago by Vladimir. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts 03/05/2017 at 09:40 #3665 grupoggParticipant Hello, I need some information, because i need to know how can i do in php code,check if user or user role have permissions on a post. thanks 03/05/2017 at 16:39 #3670 VladimirKeymaster Hi, What permissions do you wish to check: edit or view? 04/05/2017 at 00:24 #3673 VladimirKeymaster Hi, There is a special public method, which you can call to check if user can view a post or not: URE_Content_View_Restrictions::current_user_can_view($post_id) Unfortunately, it works incorrectly for some restriction settings, as discovered recently. I work on a fix. It will be available next week. Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In