This commit is contained in:
Paul Sealock 2020-01-21 08:06:38 +13:00 committed by GitHub
parent 25c09563a1
commit 127ede4fd7
1 changed files with 1 additions and 1 deletions

View File

@ -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' );