We can register a custom post type with the register_post_type function. This should not be hooked before init. So, the good option is to call it with an init hook.
Post types can support any number of built-in core features such as meta boxes, custom fields, post thumbnails, post statuses, comments, and more. See the $supports the argument for a complete list of supported features.
User Contributed Notes
You must log in before being able to contribute a note or feedback.