To create your custom post type, please follow these two steps.
Step – 1 ( Open custom plugin’s any php file )
Open your plugin’s any php file which is related to your setting up data for the custom plugin.
Step – 2 ( Add code )
Add below code to that file.
https://gist.github.com/BhargavBhandari90/fc24d41a05298b1d800a4ed7930a2072