I'm in a situation where i also need to get the id of the inserted meta(
meta_id for post meta and
umeta_id for user meta)
For eg i add a user meta
is there a built in method of getting the umeta_id for this meta field without using custom query?
Same case for retrieving meta value with meta id. I had to use this
$sql_query = 'select umeta_id as my_key_id, meta_value from wp_usermeta where user_id = "'.$user_id.'" and meta_key = "some_key" order by my_key_id asc';
Any better alternative?