Yes No

settings_adminmenu; // Iter the options foreach ( $reset_keys as $reset_key ) { // Delete the option delete_option( HELPDOCS_GO_PF.$reset_key ); } // Add a notice to confirm ?>

'#d1d1d1' ] ), $allowed_html ); ?> $label, 'sublabel' => $slug, 'value' => $slug ]; } // Ensure default WP separators are included foreach ( $default_separators as $slug ) { if ( ! isset( $admin_menu_items[ $slug ] ) ) { $admin_menu_items[ $slug ] = [ 'label' => '-- Separator -- (place at bottom to hide)', 'sublabel' => $slug, 'value' => $slug ]; } } // Add your extra separators foreach ( $extra_separators as $slug ) { $admin_menu_items[ $slug ] = [ 'label' => '-- Separator -- (place at bottom to hide)', 'sublabel' => $slug, 'value' => $slug ]; } // Re-index to numeric array for your sorter $admin_menu_items = array_values( $admin_menu_items ); $sorter_args = [ 'choices' => $admin_menu_items, 'sublabel_checkbox' => 'Show Slugs' ]; ?>
Reset Admin Menu Order to Default | Copy Settings from Another Site
Don't forget to save your changes!