Notice: Trying to get property of non-object in /home/wpcmsnin/ on line 25

Give View Entry access to a WordPress Role

, , , ,

So I came across this snippet of code recently when I was trying to find a way to give a user access to a form's entries based on a user role.  I did find that I needed to modify it a little bit for the menu side of things so that when you go to the view entries page without having selected a menu, it will not show the results of that form.  If left unedited it would of showed the first form added to the systems entries.  This way it hides this menu item.  So you should however also add a custom menu item for that role to that forms entries which you can see the example code below.



, ,

Posted on

November 3, 2016

Submit a Comment

Your email address will not be published. Required fields are marked *