How to remove Custom post type slug from WordPress custom post type URL

During working on a WordPress project client asked me to remove the slug form the custom post type which is necessary for SEO. To do that I did some Google and got an solution which I am sharing with you here.... First register custom post type on your function.php . In my case I used property [...]