user metadata in json format, update the data partly only

You cannot use update_user_meta on its own here. You would need to get_user_meta first, decode your json into an array, update the last_seen element of the array, re-encode it and only then update_user_meta. Unless there is a good reason not to, I would consider just saving these as serialized data (to avoid the json step), … Read more

how to get users with usermeta include array of an array

I solved my problem in another way(WPDB). I wrote a query for this purpose like below: $goal_posts = [31289,31422,77641,41289,21482,17641]; $sql = “SELECT * FROM wp_usermeta WHERE (meta_key = ‘saved_posts’) AND (“; $sql .= implode(” OR “, $goal_posts); $sql .= ‘) GROUP BY user_id’; global $wpdb; $users = $wpdb->get_results($sql);

How $_GET[‘updated’] variable is passed when updating a user?

I have found a javascript solution. Here is the code: member.js (needs jQuery) $jq = jQuery.noConflict(); $jq(document).ready(function () { redirect_on_save_func(); }); function redirect_on_save_func() { var qvars = get_query_func(); var nq = []; $jq.each(qvars, function (vk, vv) { if (vk.match(‘meta_warning*’) == null) nq.push(vk + ‘=’ + encodeURIComponent(vv)); }); var hr = window.location.href; var nqs = hr.split(‘?’)[0] … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)