Skip to content

Type – Checkboxes

Henner R Setyono edited this page Jan 11, 2020 · 5 revisions

'font_subset' => [
  'label' => __( 'Google Fonts Subset' ),
  'type' => 'ct-checkboxes',
  'attr' => [ 'data-columns' => 'no-gap' ],
  'allow_empty' => true,
  'choices' => [
    'latin-ext' => __( 'Latin Ext' ),
    'vietnamese' => __( 'Vietnamese' ),
    'cyrillic' => __( 'Cyrillic' ),
    'cyrillic-ext' => __( 'Cyrillic Extended' ),
    'greek' => __( 'Greek' ),
    'greek-ext' => __( 'Greek Extended' ),
  ],
]

Value Format

'font_subset' => [
  'latin-ext' => true,
  'vietnamese' => false,
  'cyrillic' => false,
  'cyrillic-ext' => false,
  'greek' => false,
  'greek-ext' => false,
],

Clone this wiki locally