ID, 'cd_acr_post_types', true ) ); $postTypeArgs = array( 'public' => true, '_builtin' => false ); $post_types = get_post_types( $postTypeArgs ); $default_post_types = array( 'post' => 'post', 'page' => 'page', ); $all_post_types = array_merge($default_post_types, $post_types); ?>
$post_type) { // If the postmeta for checkboxes exist and // this element is part of saved meta check it. if ( is_array( $cd_acr_post_type_meta ) && in_array( $id, $cd_acr_post_type_meta ) ) { $checked = 'checked="checked"'; } else { $checked = null; } $i++; ?>

Select which post types should be queried at this endpoint.