WordPress.org

Ready to get started?Download WordPress

Forums

remove trash option for users (8 posts)

  1. infohowdy
    Member
    Posted 2 years ago #

    Hello, I'm looking to disable/remove the trash option in some pages and posts by id.
    In the codex I found only wp_trash_posts...

  2. brasofilo
    Member
    Posted 2 years ago #

    i normally do this using a role manager plugin, so that Editors cannot "delete_others_pages"

    or use Adminimize to hide the Trash from specific roles

    but, i don't know how to do this by ID

  3. cliffhickton
    Member
    Posted 1 year ago #

    Hi, I'm looking to do a similare thing. I am using role scoper to allow one page edit rights to individual users. I want to creat a page for them to edit content only but not be allowed to trash the page. Also need to remove the sidebar control, portfolio category, custom settings and page linking and sub menu options on those specific pages. Does anyone know how this can be done. Using version 3.4.2

    Thanks

  4. brasofilo
    Member
    Posted 1 year ago #

    @cliffhickton : try with Adminimize

  5. cliffhickton
    Member
    Posted 1 year ago #

    Hi Brasofilo,

    I tried your advice and set all restrictions for subscriber. This did similar tasks as with role scoper but with a few extra options which were useful.
    I was able to remove the quick edit function however when you click to edit page there is still the option to trash the page and ultimately delete it. Also on the same page all the boxes sidebar control, portfolio category, custom settings and page linking and sub menu options on those specific pages are still their no matter what I try. Surely their is a way to remove these?

    Thanks for the help and fast reply

  6. brasofilo
    Member
    Posted 1 year ago #

  7. cliffhickton
    Member
    Posted 1 year ago #

    This is amazing thank you. I wonder if anyone has already found the id for this. I have downloaded firebug but to be honest it seems very confusing and difficult to understand with so many options. Thanks so much for this advise i will do my best to try and make it work thank you

  8. infohowdy
    Member
    Posted 1 year ago #

    Thanks guys :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.