Decoding an array in PHP (from the Shopify API) [closed]

Follow your json template. The result of json_decode will be like this array ( ‘customers’ => array ( 0 => array ( ‘id’ => 1123, ’email’ => ‘<eMail>’, ), ), ) So, you should use foreach loop, or you can get the value with specify key. eg: $customer_array[‘customers’][0][‘id’] $customer_array[‘customers’][0][’email’]

not able to access $_POST on backend profile update

I’ve found my mistake. I was hooking twice the same code, one in the ‘edit_user_profile’ and other in ‘edit_user_profile_update’. I have separated the display code from de update code and now it works like have to: <?php function privacity_user_profile_fields() { global $user_id; $data_consent = get_user_meta($user_id, ‘gdpr_user_register_consent’, true); $data_consent_text=”He leído y entendido el cómo se tratarán … Read more