manage_users_custom_column
Filters the display output of custom columns in the Users list table.
Использование
add_filter( 'manage_users_custom_column', 'wp_kama_manage_users_custom_column_filter', 10, 3 ); /** * Function for `manage_users_custom_column` filter-hook. * * @param string $output Custom column output. * @param string $column_name Column name. * @param int $user_id ID of the currently-listed user. * * @return string */ function wp_kama_manage_users_custom_column_filter( $output, $column_name, $user_id ){ // filter... return $output; }
- $output(строка)
- Custom column output.
По умолчанию: '' - $column_name(строка)
- Column name.
- $user_id(int)
- ID of the currently-listed user.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
manage_users_custom_column
manage_users_custom_column
wp-admin/includes/class-wp-users-list-table.php 625
$row .= apply_filters( 'manage_users_custom_column', '', $column_name, $user_object->ID );
wp-admin/includes/class-wp-ms-users-list-table.php 470
echo apply_filters( 'manage_users_custom_column', '', $column_name, $user->ID );