I want accept and reject button functionality on notification section
-
Hello,
I am working with buddy press and i have one task I want accept and reject both button functionality on notification section in place of Read|Delete action and both should be work like real button work accept and reject.I am trying but it is not working. my add code for accept and reject both button .
<div class="action"> <a>"><?php _e( 'Accept', 'buddypress' ); ?></a> <a>"><?php _e( 'Reject', 'buddypress' ); ?></a> <?php do_action( 'bp_friend_requests_item_action' ); ?> </div>
using
bp_friend_accept_request_link()
i am not getting friend id like i got
url
localhost/myfolder/members/username/friends/requests/accept/?_wpnonce=3abfc1f1dd
but it should be like
localhost/myfolder/members/username/friends/requests/accept/22?_wpnonce=3abfc1f1dd
i am missing 22and this is friend id. so please solve my problem.
i also want when user accept and reject friend request then friend request notification should be hide or delete.
Thanks
- The topic ‘I want accept and reject button functionality on notification section’ is closed to new replies.