manage_users-network_custom_column
Filters the display output of custom columns in the Network Users list table.
Usage
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(string)
- Custom column output.
Default: '' - $column_name(string)
- Name of the custom column.
- $user_id(int)
- ID of the currently-listed user.
Changelog
| Since 6.8.0 | Introduced. |
Where the hook is called
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 );