How to enable UX Builder for Custom post types

To enable UX Builder for custom post types add this to your function.php file:

add_action( 'init', function () {
 add_ux_builder_post_type(‘custom_post_type_id’);
} );