Skip to:
Content
Pages
Categories
Search
Top
Bottom

Delete own posts

  • Is there somehow a function for a user with role “Member” to delete theri own posts?

    It only shows Edit or Quota for member role users.

    I tried with Role Manager Plugin – theres an option to let Members delete posts.

    The problem is that they can delete every post by everybody…

    Help please

Viewing 3 replies - 1 through 3 (of 3 total)

  • _ck_
    Participant

    @_ck_

    Yes you can, easily.

    I have a mini-plugin for this somewhere around here…

    Here you go:

    <?php
    /*
    Plugin Name: Delete Own Post
    */
    function delete_own_post($retvalue,$capability,$args) {return ($capability=='delete_post') ? bb_current_user_can('edit_post',$args[1]) : $retvalue;}
    add_filter('bb_current_user_can','delete_own_post',10,3);
    ?>

    Note that they can only delete for as long as they can edit.

    Meaning after the 1 hour default, no more delete.

    But you can change the timeout in the admin settings.

    So just make a php file with that inside name it for example delete post and upload it to my plugins, right?

    Thanks a lot

    bbpress is getting more and more interesting for me

    Yes it works!

    Thanks a lot! (and again and again)

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar