Reputation:
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.
management-2
" and save the form.admin.php?page=management&settings-updated=true
", but since we set it to "management-2
", I get a "403
" error.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?
Upvotes: 0
Views: 82