Why my CPT does not appear on the dashboard menu when i activate the plugin?
The problem is that you’ve set the value for ‘public’ incorrectly. That argument is a boolean, meaning it’s true or false, and in PHP these need to be written without quotes to be correct: register_post_type( ‘magazine’, array( ‘labels’ => array( ‘name’ => ‘magazine’, ), ‘public’ => true, ) ); For the post type to appear … Read more