WordPress at a glance
function is not described


Loader::get_user_data_fields() public 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.

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


Array. Fields to expose over the WP user endpoint.


$result = Loader::get_user_data_fields();

Code of Loader::get_user_data_fields() WC 5.3.0

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