Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Delete Post by It’s Owner


_ck_
Participant

@_ck_

You tried the second method and it does that?

It works for me, just tested it on 0.9

function delete_own_post($retvalue, $capability, $args) {
if ($capability=="delete_post") {return bb_current_user_can( 'edit_post', $args[1]);}
return $retvalue;
}
add_filter('bb_current_user_can', 'delete_own_post',10,3);

.

Note that the delete ability times out with the edit ability (1 hour in default install).

Skip to toolbar