Ecommerce Shopify WordPress Discussion

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. For example, let's make this "management-2" and save the form. In this case, WordPress redirects to "admin.php?page=management&settings-updated=true", but since we set it to "management-2", I get a "403" error. At this point I need to catch a hook, start a new redirect and return it to the "admin.php?page=management-2&settings-updated=true" link, but I couldn't find any hook to do this. Does anyone have any solution suggestions?
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.