bw_jtorf() – Pre-processing for json_encode to convert "on" == "true" to 1 == true "off" == "0" to 0 == false torf = true or false This will allow WordPress options which are checkboxes to be passed as jQuery boolean parameters where the default is true so we need to pass false.