nsrosenqvist / cmb2-post-types
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=7.0.0
- cmb2/cmb2: ^2.4.0
This package is auto-updated.
Last update: 2020-06-09 20:10:04 UTC
README
A multi-check field to select post types.
$list = new_cmb2_box(array( 'id' => 'list', 'title' => __('List', 'theme'), )); $post_types = $list->add_field(array( 'name' => __( 'Post Types Included In List', 'theme'), 'id' => 'post_types', 'type' => 'multicheck_post_type', 'default' => ['page', 'post'], ));