How To Remove Post Preview Button From WordPress Post Editor

Are you working on a site or with custom post types where you don’t need post preview button? Here’s how to remove post preview button from post editor.

Just drop the following snippet to your current theme’s functions.php file:

In the $post_type arrow you can define in which post types you want to remove post preview button.