hide add new link on cpt page

Solutions on MaxInterview for hide add new link on cpt page by the best coders in the world

showing results for - "hide add new link on cpt page"
Leonardo
13 Mar 2017
1// Simply pass the the parameter 'create_posts' => 'do_not_allow',
2// in the capabilities array when calling register_post_type.
3
4'capabilities' => array(
5    'create_posts' => 'do_not_allow'
6)