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