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.