[],
'other_choice' => 0,
'allow_null' => 0,
]);
$output .= sprintf( '
',
isset( $acf_field['other_choice'] ) && $acf_field['other_choice'] ? ' other' : '',
$acf_field['key']
);
if ( $acf_field['allow_null'] ) {
$id = $this->core->prefix( $acf_field['key'] . '---none' );
$output .= sprintf( '';
}
foreach( $acf_field['choices'] as $name => $value) {
$id = $this->core->prefix( $acf_field['key'] . '-' . sanitize_key( $name ) );
$output .= sprintf( '';
}
if ( isset( $acf_field['other_choice'] ) && $acf_field['other_choice'] ) {
$id = $this->core->prefix( $acf_field['key'] . '-other' );
$output .= sprintf( '';
}
$output .= '
';
return $output;
}
}