Hi,
The attribute readonly
does not work with the field radio
. You can set the default value and disable the radio field.
[
'name' => __( 'Radio', 'your-text-domain' ),
'id' => $prefix . 'radio',
'type' => 'radio',
'options' => [
'a' => __( 'A', 'your-text-domain' ),
'b' => __( 'B', 'your-text-domain' ),
'c' => __( 'C', 'your-text-domain' ),
],
'std' => 'b',
'disabled' => true,
],