Okay thanks for the info.
I ended up using the register_post_type_arg hook instead. It seemed to work out perfectly but thanks for the info!
function add_events_to_rest( $args, $post_type ) {
if ( ‘event’ === $post_type ) {
$args[‘show_in_rest’] = true;
}
return $args;
}
add_filter( ‘register_post_type_args’, ‘add_events_to_rest’, 10, 2 );