Automattic\WooCommerce\Internal\Admin

WCAdminUser::get_user_data_fields()publicWC 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.

Method of the class: WCAdminUser{}

Return

Array. Fields to expose over the WP user endpoint.

Usage

$WCAdminUser = new WCAdminUser();
$WCAdminUser->get_user_data_fields();

WCAdminUser::get_user_data_fields() code WC 7.1.0

public function get_user_data_fields() {
	return apply_filters( 'woocommerce_admin_get_user_data_fields', array() );
}