📜  wordpress acf 获取复选框选项 - PHP 代码示例

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

代码示例1
$values = get_field('your_field_key');
$field = get_field_object('your_field_key');
$choices = $field['choices'];
foreach( $choices as $choice => $label ){
  echo("Value: $choice , Label: $label
"); }