• Hi all! =)
    I want to create a public plugin, which will restrict access to view and edit post, page, cpt, etc in admin panel. For view I have already made it with hook the_content but to restrict all opportnuty to manage the data ib admin panel is very hard. First I don
    t use capabilities, I do not think i need it. I just want to prevent user to manage specific post by prevent action on hook. Bow I have hook like this
    in_admin_header – fire in admin to prevent edit in post list
    edit_post – on edit post
    wp_trash_post & before_delete_post – prevent delete
    page_row_actions & post_row_actions – prevent to show fast edit actions, but doesnt prevent to edit (seems).

    The problem that I cant find the hook to prevent multi manage entry for example when we click on checkbox on post list beside some post and then scroll down to action we can change some settings for that post, (it is strange that I can edit post with this action and edit_post dosn’t fire). Also I dont think that I have restricted with that hooks access from all possible actions…
    Also, why I use hooks? Bc I need use global $post variable to check user info and get post info.

    I will appreciate any help.
    regards

  • The topic ‘How to restrict access to specific entry (post, page, cpt) for specific user?’ is closed to new replies.