do_action( 'manage_pages_custom_column', string $column_name , int $post_id )
Fires in each custom column on the Posts list table.
Description Description
This hook only fires if the current post type is hierarchical, such as pages.
Parameters Parameters
- $column_name
-
(string) The name of the column to display.
- $post_id
-
(int) The current post ID.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
To add “Template” column into page list:
Expand full source codeCollapse full source code
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.Expand full source codeCollapse full source code