do_action( 'manage_pages_custom_column', string $column_name, int $post_id )
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.
More Information
Combined with the manage_pages_columns filter, this allows you to add or remove (unset) custom columns to the list page pages. Note that if you are using custom post types and it has ‘hierarchical
‘ => true
, then you will need to use this action hook and not manage_$post_type_posts_custom_column.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/manage_pages_custom_column