WordPress at Your Fingertips
filter is not described

woocommerce_admin_get_user_data_fields filter-hook . WC 1.0

We store some WooCommerce specific user meta attached to users endpoint, so that we can track certain preferences or values such as the inbox activity panel last open time. Additional fields can be added in the function below, and then used via wc-admin's currentUser data.

Usage

add_filter( 'woocommerce_admin_get_user_data_fields', 'filter_function_name_7423' );
function filter_function_name_7423( $array ){
	// filter...

	return $array;
}
$array
-

Where the hook is called

Loader::get_user_data_fields()
woocommerce_admin_get_user_data_fields
woocommerce/packages/woocommerce-admin/src/Loader.php 1312
return apply_filters( 'woocommerce_admin_get_user_data_fields', array() );

Where in WP core the hook is used WooCommerce

woocommerce/packages/woocommerce-admin/src/Features/ActivityPanels.php 36
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );
woocommerce/packages/woocommerce-admin/src/Features/Analytics.php 55
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );
woocommerce/packages/woocommerce-admin/src/Features/Homescreen.php 41
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );
woocommerce/packages/woocommerce-admin/src/Features/MobileAppBanner.php 32
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );