Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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'
)
 
PREVIOUS NEXT
Tagged: #hide #add #link #cpt #page
ADD COMMENT
Topic
Name
1+9 =