📜  在 cpt 页面上隐藏添加新链接 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:27.805000             🧑  作者: Mango

代码示例1
// 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'
)