Populate Types checkbox field by a $_GET or $_POST value :
I'm trying to populate a checkbox if I create a new post with a url like that :
.../post-new.php?post_type=cpt&express=true
Unfortunalty, I can't find a way to do this ? There is no default value for a checkbox and I can't find a wpt_field_options equivalent to wpt_field_checkbox
You have to trigger to not loose toolset conditionals
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = window.location.search.substring(1),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
for (i = 0; i < sURLVariables.length; i++) {
sParameterName = sURLVariables[i].split('=');