manage_users_custom_column filter-hookWP 2.8.0

Filters the display output of custom columns in the Users list table.

Usage

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(string)
Custom column output.
Default: ''
$column_name(string)
Column name.
$user_id(int)
ID of the currently-listed user.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

WP_Users_List_Table::single_row()
manage_users_custom_column
WP_MS_Users_List_Table::column_default()
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 );

Where the hook is used in WordPress

Usage not found.