I am creating a plugin that creates a new custom post type. How can I check if the custom post type has been created already (maybe by the user in functions.php for some other use)? Actually I would like to know what is the best way to go about it, maybe add a prefix to my custom post type to make it as unique as possible?
To check for the existence of a post type, use
As for the prefix, that's a matter of personal taste and how common you think the post type otherwise is. Personally, I don't think it's necessary.