WordPress custom post type how to hide add new code example
Example: hide add new link on cpt page
// Simply pass the the parameter 'create_posts' => 'do_not_allow',
// in the capabilities array when calling register_post_type.
'capabilities' => array(
'create_posts' => 'do_not_allow'
)