📜  acf 更新组字段 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:16.595000             🧑  作者: Mango

代码示例1
//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 );