Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#16006 closed enhancement (invalid)

managing custom columns

Reported by: bmb's profile bmb Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Posts, Post Types Keywords:
Focuses: Cc:


there is a manage_{$post_type}_posts_columns filter for adding custom columns to the admin page of custom types, but for putting data in the column there is only the generic 'manage_posts_custom_column action. I think there should be a manage_{$post_type}_custom_column` action.

Change History (3)

#1 follow-up: @knutsp
12 years ago

There is:

$post_type = 'my-post-type';
add_filter( "manage_edit-{$post_type}_columns", 'your_function' );

#2 in reply to: ↑ 1 @bmb
12 years ago

Replying to knutsp:

There is:

$post_type = 'my-post-type';
add_filter( "manage_edit-{$post_type}_columns", 'your_function' );

As far as I know, that is the same filter as manage_{$post_type}_posts_columns for adding columns, not the action for filling them.

#3 @duck_
12 years ago

  • Keywords custom column custom post type removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 3.0.3 deleted
Note: See TracTickets for help on using tickets.