Answers for "wordpress custom post type how to hide add new"

PHP
0

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'
)
Posted by: Guest on November-05-2020

Code answers related to "wordpress custom post type how to hide add new"

Browse Popular Code Answers by Language