📅  最后修改于: 2022-03-11 14:54:27.805000             🧑  作者: Mango
// 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'
)