Fires in each custom column on the Posts list table.
Description
This hook only fires if the current post type is hierarchical, such as pages.
Parameters
$column_name
string- The name of the column to display.
$post_id
int- The current post ID.
Source
do_action( 'manage_pages_custom_column', $column_name, $post->ID );
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
To add “Template” column into page list:
To add to other post types (not post, page or attachment…):
The hooks to create custom columns and their associated data for a custom post type are
manage_{$post_type}_posts_columns
andmanage_{$post_type}_posts_custom_column
respectively, where{$post_type}
is the name of the custom post type.Example migrated from Codex:
Once you have added your column (for this example, thumbnail), the featured image can be displayed for that page in the new thumbnail column.