Opened 11 years ago
Closed 11 years ago
#16006 closed enhancement (invalid)
managing custom columns
Reported by: |
|
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)
#2
in reply to:
↑ 1
@
11 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
@
11 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
manage_{$post->post_type}_posts_custom_column already exists in 3.1.
Slightly related: #16000
Note: See
TracTickets for help on using
tickets.
There is:
$post_type = 'my-post-type';
add_filter( "manage_edit-{$post_type}_columns", 'your_function' );