From 3ea980894aa4016dda8fe7362566563b221f1476 Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Wed, 28 Aug 2024 16:29:13 +0200 Subject: [PATCH 1/2] Add singular_name --- modules/notes/class-notes-module.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/notes/class-notes-module.php b/modules/notes/class-notes-module.php index bd020b4..5005bad 100644 --- a/modules/notes/class-notes-module.php +++ b/modules/notes/class-notes-module.php @@ -43,7 +43,8 @@ public function register() { 'notebook', array( $this->id, 'todo' ), array( - 'label' => 'Notebook', + 'label' => 'Notebooks', + 'singular_name' => 'Notebook', 'public' => false, 'hierarchical' => true, 'show_ui' => true, From 041763cc0b0c02ceefe31d84a05822b234e79af8 Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Wed, 28 Aug 2024 16:36:43 +0200 Subject: [PATCH 2/2] Update class-notes-module.php --- modules/notes/class-notes-module.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/notes/class-notes-module.php b/modules/notes/class-notes-module.php index 5005bad..79f0e7b 100644 --- a/modules/notes/class-notes-module.php +++ b/modules/notes/class-notes-module.php @@ -43,8 +43,19 @@ public function register() { 'notebook', array( $this->id, 'todo' ), array( - 'label' => 'Notebooks', - 'singular_name' => 'Notebook', + 'labels' => array( + 'name' => 'Notebooks', + 'singular_name' => 'Notebook', + 'search_items' => 'Search Notebooks', + 'all_items' => 'All Notebooks', + 'parent_item' => 'Parent Notebook', + 'parent_item_colon' => 'Parent Notebook:', + 'edit_item' => 'Edit Notebook', + 'update_item' => 'Update Notebook', + 'add_new_item' => 'Add New Notebook', + 'new_item_name' => 'New Notebook Name', + 'menu_name' => 'Notebook', + ), 'public' => false, 'hierarchical' => true, 'show_ui' => true,