Bool property

<?php

/**
 * Example of bool.
 */

papi_property( [
  'title'    => 'True or false?',
  'slug'     => 'my_true_or_false_slug',
  'type'     => 'bool'
] )

/**
 * Example output.
 */

boolean true

Description

The property output a single checkbox, when clicked the output value will be true otherwise false.

Settings

No settings exists.