If I do something like this...
array(
'field_id' => 'checkbox_field',
'type' => 'checkbox',
'title' => ( 'Post Status' ),
'description' => ( 'The description for the field.', 'admin-page-framework-demo' ),
'label' => get_post_statuses()
),
...I get the appropriately labelled checkboxes, but the values do not correspond with the values defined in the array (e.g. publish, pending, etc.).
If I do something like this... array( 'field_id' => 'checkbox_field', 'type' => 'checkbox', 'title' => ( 'Post Status' ), 'description' => ( 'The description for the field.', 'admin-page-framework-demo' ), 'label' => get_post_statuses() ),
...I get the appropriately labelled checkboxes, but the values do not correspond with the values defined in the array (e.g. publish, pending, etc.).
How can I work around this?