Unexpected behaviour

When I click on my plugin security settings, it also expands the tools menu on the left.
As you can see there are two menu selected and expanded…
Could it be something wrong in my plugin?

Thank you!

Simone.

2 Likes

I also see a Cpvars under tools. Does that link lead to the same place? Could that be the problem.

No, the link lead to the configuration part not relative to security…

1 Like

… but the menus have the same slug.

Changing the slug in the options (can’t change slug for security options that MUST match plugin slug) solved.

The codex was not so clear to me:

$menu_slug
(string) (Required) The slug name to refer to this menu by. Should be unique for this menu and…

Thank you for pointing me to the right direction :slightly_smiling_face:

Edit:
@invisnet maybe in the documentation of the add_security_page would be nice to have a note about remembering to check and rename the original slug that was used in add_submenu_page.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.