Skip to content

Commit b9a1d7d

Browse files
luizbillsk1sul1
authored andcommitted
disable "Add new" button to submissions
1 parent d2366f5 commit b9a1d7d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

classes/class-cpt-wplf-submission.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public static function register_cpt() {
6464
'query_var' => false,
6565
'rewrite' => null,
6666
'capability_type' => 'post',
67+
'capabilities' => array(
68+
'create_posts' => 'do_not_allow',
69+
),
70+
'map_meta_cap' => true,
6771
'has_archive' => false,
6872
'hierarchical' => false,
6973
'menu_position' => null,

0 commit comments

Comments
 (0)