Skip to content

Commit ce3ff05

Browse files
committed
Fix: Add missing 'show_in_menu' to Settings_Wizard_API defaults
1 parent b1ea88f commit ce3ff05

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

includes/admin/settings/class-settings-wizard-api.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class Settings_Wizard_API {
126126
* @type string $page_slug Wizard page slug.
127127
* @type array $menu_args Menu arguments array with parent and capability.
128128
* @type bool $hide_when_completed Whether to hide the wizard submenu item after completion.
129+
* @type bool $show_in_menu Whether to show the wizard in the admin menu.
129130
* }
130131
*/
131132
public function __construct( $settings_key, $prefix, $args = array() ) {
@@ -139,6 +140,7 @@ public function __construct( $settings_key, $prefix, $args = array() ) {
139140
'admin_menu_position' => 999,
140141
'page_slug' => "{$prefix}_wizard",
141142
'hide_when_completed' => true,
143+
'show_in_menu' => true,
142144
'menu_args' => array(
143145
'parent' => '', // Empty for dashboard, or parent slug for submenu.
144146
'capability' => 'manage_options',

0 commit comments

Comments
 (0)