Select post types via select2, select, radio, checkbox and etc input fields.
Via select2
array( 'id' => 'post_types_field', 'title' => __('Post types select Field','text-domain'), 'details' => __('Description ofPost types select field','text-domain'), 'type' => 'select2', 'args' => 'WPADMINSETTINGS_POST_TYPES_ARRAY', ),
array( 'id' => 'post_types_field', 'title' => __('Post types select Field','text-domain'), 'details' => __('Description ofPost types select field','text-domain'), 'type' => 'select2', 'multiple' => true, 'args' => 'WPADMINSETTINGS_POST_TYPES_ARRAY', ),
Via select
array( 'id' => 'post_types_field', 'title' => __('Post types select Field','text-domain'), 'details' => __('Description ofPost types select field','text-domain'), 'type' => 'select', 'args' => 'WPADMINSETTINGS_POST_TYPES_ARRAY', ),
array( 'id' => 'post_types_field', 'title' => __('Post types select Field','text-domain'), 'details' => __('Description ofPost types select field','text-domain'), 'type' => 'select', 'multiple' => true, 'args' => 'WPADMINSETTINGS_POST_TYPES_ARRAY', ),
Via Radio
array( 'id' => 'post_types_field', 'title' => __('Post types select Field','text-domain'), 'details' => __('Description ofPost types select field','text-domain'), 'type' => 'radio', 'args' => 'WPADMINSETTINGS_POST_TYPES_ARRAY', ),
Via checkbox
array( 'id' => 'post_types_field', 'title' => __('Post types select Field','text-domain'), 'details' => __('Description ofPost types select field','text-domain'), 'type' => 'checkbox', 'args' => 'WPADMINSETTINGS_POST_TYPES_ARRAY', ),