Skip to:
Content
Pages
Categories
Search
Top
Bottom

Deletey my feed only


  • jennifersanchez
    Participant

    @jennifersanchez

    i have this function in my custom entry.php

    <div class="closer"><?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?></div>

    this function make that a user can delete all activity (although it isnt write by them)
    how i can do it possible only for the author of the feed?
    Thanks very much

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

  • Venutius
    Moderator

    @venutius

    bp_activity_user_can_delete() should d that for you looking at the code, it returns true if the user is the author of the activity or if the user has bp_moderate capability.


    jennifersanchez
    Participant

    @jennifersanchez

    Thanks!! it s works!!

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