This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Plugin::set_post_type()
Register the post type
Source
File: includes/libs/plugin.class.php
private function set_post_type(){ $this->cpt = new Post_Type( $this ); add_action( 'init', function(){ $this->registered_post_types = new Post_Registration( $this->cpt->get_wp_post_type_object(), $this->cpt->get_category_taxonomy_object(), get_taxonomy( $this->cpt->get_tag_tax() ) ); }, 2 ); }