Opened 4 years ago

Last modified 2 years ago

#10569 new enhancement

Allow filtering of reply text with comment context

Reported by: aaroncampbell Owned by:
Priority: normal Milestone: Future Release
Component: Comments Version:
Severity: normal Keywords: has-patch needs-testing
Cc:

Description

I know you can specify the reply text for comments, but you can't make them specific to each comment such as "Reply to comment #1234 by Joe". This will let you do that by adding a filter called comment_reply_link_text to get_comment_reply_link() that passes along $args, $comment, and $post (just like the existing comment_reply_link filter).

I know you COULD do this with some processing on the link, but it would require pulling comment and post IDs from the URL and/or onclick, then replacing the text in the link itself. This way would be a lot simpler and only adds a single filter.

Attachments (1)

10569.001.diff (1.5 KB) - added by aaroncampbell 4 years ago.

Download all attachments as: .zip

Change History (4)

Perhaps we can pass $text to the existing filter making it very easy for a plugin to replace it instead of adding another filter. Would save a bit of overhead.

comment:2   ryan3 years ago

  • Milestone changed from 2.9 to Future Release

See also #16433

Note: See TracTickets for help on using tickets.