How register/create new custom post type using hooks in wordpress site?

hello everyone If you are planning to create a custom post type then use my code, hope you will enjoy my code. Add this code in your theme function file add_action( ‘init’, ‘create_post_type’ ); function create_post_type() { register_post_type( ‘R_News’, array( ‘labels’ => array( ‘name’ => __( ‘News’ ), ‘singular_name’ => __( ‘News’ ) ), ‘public’ …