user17142896
user17142896

Reputation:

How can I catch WordPress custom settings page slug has already changed?

I created a custom settings page like below.

    add_menu_page(
      __('Management', 'domain'),
      __('Management', 'domain'),
      'activate_plugins',
      'management', // <---
      function () {
        echo 'Hello';
      },
      'icon',
      999
    );

As we can see, this page is accessed via the "admin.php?page=management" link. I commented above with "<---" But this is such a page that users can change this slug.

Does anyone have any solution suggestions?

Upvotes: 0

Views: 82

Answers (0)

Related Questions