manage_post_posts_custom_column
Fires for each custom column of a specific post type in the Posts list table.
This is one of the variants of the dynamic hook manage_(post_type)_posts_custom_column
Usage
add_action( 'manage_post_posts_custom_column', 'wp_kama_manage_post_posts_custom_column_action', 10, 2 );
/**
* Function for `manage_post_posts_custom_column` action-hook.
*
* @param string $column_name The name of the column to display.
* @param int $post_id The current post ID.
*
* @return void
*/
function wp_kama_manage_post_posts_custom_column_action( $column_name, $post_id ){
// action...
}
- $column_name(string)
- The name of the column to display.
- $post_id(int)
- The current post ID.
Changelog
| Since 3.1.0 | Introduced. |
Where the hook is called
manage_post_posts_custom_column
wp-admin/includes/class-wp-posts-list-table.php 1409
do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID );