ฉันต้องการอัปเดตฟิลด์ user_meta ที่กำหนดเองเมื่อผู้ใช้อัปโหลดรูปภาพใหม่ (ไม่ใช่อวตาร)
รหัสการทำงานสำหรับการอัปโหลดอวตาร
add_action('xprofile_avatar_uploaded', 'callback');
function callback($user_id, $type)
{
// $activity_id = <- the activity from the uploded image.
update_user_meta($user_id, 'image_'.$activity_id, '1');
}