Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#16006 closed enhancement (invalid)

managing custom columns

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

Description

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
16 years ago

There is:

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

#2 in reply to: ↑ 1 @bmb
16 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_
16 years ago

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