manage_pages_custom_column хук-событиеWP 2.5.0

Fires in each custom column on the Posts list table.

This hook only fires if the current post type is hierarchical, such as pages.

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

add_action( 'manage_pages_custom_column', 'wp_kama_manage_pages_custom_column_action', 10, 2 );

/**
 * Function for `manage_pages_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_pages_custom_column_action( $column_name, $post_id ){

	// action...
}
$column_name(строка)
The name of the column to display.
$post_id(int)
The current post ID.

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

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

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

WP_Posts_List_Table::column_default()
manage_pages_custom_column
wp-admin/includes/class-wp-posts-list-table.php 1366
do_action( 'manage_pages_custom_column', $column_name, $post->ID );

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

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