Dashboard: fix usermeta prefix (https://github.com/woocommerce/woocommerce-admin/pull/3586)
This commit is contained in:
parent
25c09563a1
commit
127ede4fd7
|
@ -675,7 +675,7 @@ class Loader {
|
|||
|
||||
$current_user_data = array();
|
||||
foreach ( self::get_user_data_fields() as $user_field ) {
|
||||
$current_user_data[ $user_field ] = json_decode( get_user_meta( get_current_user_id(), 'wc_admin_' . $user_field, true ) );
|
||||
$current_user_data[ $user_field ] = json_decode( get_user_meta( get_current_user_id(), 'woocommerce_admin_' . $user_field, true ) );
|
||||
}
|
||||
$settings['currentUserData'] = $current_user_data;
|
||||
$settings['reviewsEnabled'] = get_option( 'woocommerce_enable_reviews' );
|
||||
|
|
Loading…
Reference in New Issue