[ Close ] Introducing Carbon Fields Version 3 - now with Gutenberg Blocks Support


Documentation > Fields > Checkbox


The checkbox field create a single tick-able option with a label next to it.

Setup methods


Set the value that will be saved when the option is ticked.

NB! When unticked, the value is not saved in the database.
Field::make("checkbox", "crb_show_content", "Show content")

Excited about Carbon Fields? Spread the word!