尝试在 ACF [wordpress] 中保存 sub_sub_field

Tring to save sub_sub_field in ACF [wordpress]

我在 ACF 中有一个群组字段(使用社交媒体 links)。所以我以输入形式写下我社交媒体的 link。

我想将它们保存在我的 ACF 字段中。例如,我可以使用

访问 Twitter
$social_links = get_field('player_socials', 'user_'.$current_user_id);
echo($social_links['twitter']['url']);

但是我该如何保存呢?

谢谢

根据:https://www.advancedcustomfields.com/resources/update_field/

update_field($selector, $value, [$post_id]);

分组:

//Group your data into an array:
$values = array(

    'street'    =>  $street,
    'number'    =>  $number,
    'zipcode'   =>  $zipcode,
    'city'      =>  $city

);

//Update the field using this array as value:
update_field( 'selector', $values, $post_ID );