Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#16992 closed defect (bug) (worksforme)

Comments - no custom columns hook

Reported by: stencil Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Comments Keywords:
Focuses: Cc:


There is a do_action('manage_comments_custom_column') in:
wp-admin/includes/class-wp-comments-list-table.php (Line 503)

But no hook to filter the columns of the Comments table.

Small possible fix attached which applies filter.

Attachments (1)

comments.patch (415 bytes) - added by stencil 10 years ago.

Download all attachments as: .zip

Change History (4)

10 years ago

#1 @scribu
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

You can use the 'manage_edit-comments_columns' filter.

Here are the filters for all the screens:


#2 @stencil
10 years ago

  • Keywords close added; has-patch removed

Ah, thanks for that resource.

I couldn't find anything in the Codex, and searching the source was failing due to using the full string "manage_edit-comments_columns".

#3 @ocean90
10 years ago

  • Keywords close removed
Note: See TracTickets for help on using tickets.