Hi @infn8
The code looks great for me. You can also use the get_current_screen() function to check the post type like this:
// Allow for shortcodes in messages
function acf_load_field_message($field ) {
$screen = get_current_screen();
if ($screen->post_type !== "acf-field-group") {
$field['message'] = do_shortcode($field['message']);
}
return $field;
}
add_filter('acf/load_field/type=message', 'acf_load_field_message', 10, 3);
Thanks!