Opened 9 years ago
Closed 9 years ago
#6775 closed enhancement (fixed)
Messages: Add hook after message action links.
Reported by: | dcavins | Owned by: | dcavins |
---|---|---|---|
Milestone: | 2.5 | Priority: | low |
Severity: | minor | Version: | 2.4.0 |
Component: | Messages | Keywords: | has-patch |
Cc: | dcavins |
Description
I'd like to make it possible for custom actions to be appended to the existing message action links as in the attached images. This would be useful for spam reporting, in my case. Patch attached.
Attachments (3)
Change History (7)
@
9 years ago
Add a hook after the action links in the messages loop and in the header of an individual message thread.
#1
@
9 years ago
- Milestone changed from Awaiting Review to 2.5
I am happy with this because an action isn't going to break someone's theme on update, but let's let someone else sign-off before you commit this.
#2
@
9 years ago
I hate adding new hooks, but it looks like it is necessary here.
Perhaps call the hook in messages-loop.php
- 'bp_messages_thread_options'
or 'bp_messages_inbox_thread_options'
.
Perhaps call the hook in single.php
- 'bp_after_message_thread_recipients'
- since this hook would fire inside the <p id="message-recipients">
block.
Could use someone that has a better grasp of semantics here! :)
Added action link in messages loop.