wc_user_search_columns()WC 3.2.0

Add support for searching by display_name.

No Hooks.

Return

Array.

Usage

wc_user_search_columns( $search_columns );
$search_columns(array) (required)
Column names.

Changelog

Since 3.2.0 Introduced.

wc_user_search_columns() code WC 9.4.2

function wc_user_search_columns( $search_columns ) {
	$search_columns[] = 'display_name';
	return $search_columns;
}