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)
#2
in reply to: ↑ 1
@
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
@
16 years ago
- Keywords custom column custom post type removed
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
- Version 3.0.3
manage_{$post->post_type}_posts_custom_column already exists in 3.1.
Slightly related: #16000
There is:
$post_type = 'my-post-type';
add_filter( "manage_edit-{$post_type}_columns", 'your_function' );