Wow, ok i couldn’t believe it but i succeeded!!!!
here is what i did should anyone want to do the same:
i duplicated the :
function set_valueX($key, $wp_key = false) {
if (!$wp_key) {
$wp_key = $key;
}
$this->$key = xprofile_get_field_data($wp_key, $this->id);
}
to
function set_valueX($key, $wp_key = false) {
if (!$wp_key) {
$wp_key = $key;
}
$this->$key = xprofile_get_field_data($wp_key, $this->id);
}
and now i can add any value i want from it :
$this->set_valueX('jobtitle','Job Title');
for instance..
so awesome.. for a newbie like me with no php experience what so ever.. i like this php/json stuff 🙂