WordPress at Your Fingertips
function is not described

WC_Admin_API_Keys_Table_List::column_user() public WC 1.0

Return user column.

{} It's a method of the class: WC_Admin_API_Keys_Table_List{}

No Hooks.

Return

String.

Usage

$WC_Admin_API_Keys_Table_List = new WC_Admin_API_Keys_Table_List();
$WC_Admin_API_Keys_Table_List->column_user( $key );
$key(array) (required)
Key data.

Code of WC_Admin_API_Keys_Table_List::column_user() WC 5.8.0

public function column_user( $key ) {
	$user = get_user_by( 'id', $key['user_id'] );

	if ( ! $user ) {
		return '';
	}

	if ( current_user_can( 'edit_user', $user->ID ) ) {
		return '<a href="' . esc_url( add_query_arg( array( 'user_id' => $user->ID ), admin_url( 'user-edit.php' ) ) ) . '">' . esc_html( $user->display_name ) . '</a>';
	}

	return esc_html( $user->display_name );
}