We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1153c8 commit 1505fd1Copy full SHA for 1505fd1
1 file changed
app/PostTypes/Clients.php
@@ -26,11 +26,10 @@ public function __construct() {
26
*/
27
public function add_post_type_client() {
28
29
+ $labels = [ 'menu_name' => 'Client List' ];
30
+
31
$options = array(
32
'supports' => array('title'),
- 'labels' => array(
- 'menu_name' => 'Client List'
33
- ),
34
'exclude_from_search' => true,
35
'publicly_queryable' => true,
36
'show_ui' => true,
@@ -46,7 +45,7 @@ public function add_post_type_client() {
46
45
'singular' => 'Client',
47
'plural' => 'Clients',
48
'slug' => 'client'
49
- ), $options
+ ), $options, $labels
50
);
51
52
$cpt->icon('dashicons-star-filled');
0 commit comments