Hey There, just noticed, that exporting checkbox_lists with a custom Callback Function in it doesn't export the callback function and leaves out the 'options' field in the code.
It should be
[
'name' => __('Layout', 'bstg'),
'id' => $prefix . 'layout',
'type' => 'checkbox_list',
'inline' => true,
'select_all_none' => true,
'options' => components_layout(),
],
But it gets exported that way
[
'name' => __('Layout', 'bstg'),
'id' => $prefix . 'layout',
'type' => 'checkbox_list',
'inline' => true,
'select_all_none' => true,
],
So as you can see the 'options' index is missing!
Cheers