Hide post thumbnails when post_type is X

In my custom page template, I have this to display the featured image:

if ( has_post_thumbnail() ) {
        the_post_thumbnail( 'wide-header-image' );
}

Works great.

But now I have a custom post type that should NOT display the image. So I want to not display the post thumbnail when the post_type is "wpdmpro"

I hope someone can tell me how to write this -- my meager attempts at writing the code are not working.The logic is like this:

if ( has_post_thumbnail() AND post_type() != wpdmpro  ) {
        the_post_thumbnail( 'wide-header-image' );
}

But obviously that's not real code :slight_smile: