Custom Field: checkbox_single

When adding custom fields you can use the checkbox_single type to display a field.

checkbox_single Field Type

This will display a single checkbox that can be checked.

'name'         => 'property_field_checkbox_sin', // Required: Custom field key.
'label'        => 'Checkbox Single Field',       // Required: Checkbox Label.
'type'         => 'checkbox_single',             // Required: Field Type.
'opts'         => array(                         // Required: Array of single option.
     'yes' => 'Yes',			         
),
'include'      => array( 'property', 'rental' ), // Optional: Post types or exclude for all.
'class'        => 'some-class-name',             // Optional. Custom class name.
'help'         => 'Optional: Help text.',        // Optional: Help text.
'import'       => 'preserve',                    // Optional: Do not update when imported.

Custom checkbox_single field example: