Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#3084 closed enhancement (fixed)

Plugin filter for comments

Reported by: majelbstoat Owned by: majelbstoat
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: bg|has-patch
Focuses: Cc:


It would be useful to be able to process the array of comments in comments_template before they are sent to a theme. This would make it possible for plugins to selectively remove comments based on criteria, or merge comments from multiple posts (which is the case I'm particularly interested in). The attached patch passes the array of comments and the post id to a filter, 'comments_array', so that plugins can play around.

Attachments (1)

3084.diff (700 bytes) - added by majelbstoat 12 years ago.
Pass the comments array to a filter before using it.

Download all attachments as: .zip

Change History (4)

12 years ago

Pass the comments array to a filter before using it.

#1 @majelbstoat
12 years ago

  • Keywords bg|has-patch added
  • Status changed from new to assigned

#2 @hgurol
12 years ago

What are the chances for this one to be included?


#3 @matt
11 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4568]) Adding a hook for comments, fixes #3084

Note: See TracTickets for help on using tickets.