WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#16006 closed enhancement (invalid)

managing custom columns

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

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

There is:

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

#2 in reply to: ↑ 1 @bmb
10 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_
10 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.