manage_(post_type)_posts_custom_column хук-событиеWP 3.1.0

Fires for each custom column of a specific post type in the Posts list table.

The dynamic portion of the hook name, $post->post_type, refers to the post type.

Possible hook names include:


add_action( 'manage_(post_type)_posts_custom_column', 'wp_kama_manage_post_type_posts_custom_column_action', 10, 2 );

 * Function for `manage_(post_type)_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_type_posts_custom_column_action( $column_name, $post_id ){

	// action...
The name of the column to display.
The current post ID.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

wp-admin/includes/class-wp-posts-list-table.php 1398
do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID );

Где используется хук в WordPress

Использование не найдено.