Checkbox
Simple checkbox input.
Value
Returns bool
$value = fx_get_meta('id');
Example
'id' => [
'type' => 'checkbox',
'className' => 'my-class-name',
'defaultChecked' => false,
'label' => 'Enter something below',
],
Props
className
Metabox class name
type: string
defaultChecked
Input is checked by default
type: bool
defaultValue: false
label
Label that appears next to the input
type: string
title
Metabox title
type: string