-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin menu customization #75
Comments
It is an interesting idea. Because I use this plugin extensively in production environments to support critical features of high-traffic websites, one of my big concerns is that any release maintains 100% backward-compatibility. Pushing something into the Plugin Repository that breaks previous code is a sure way to get a one-star review and angry users. So, if this can be done in a way that is 100% backwards-compatible, I would be interested to see it. Also note 1.3.1 includes support for custom Dashicons, so that would need to be factored in as well. Thanks! |
I'll close this for now, but please do reference this issue if you submit a pull request. |
Note that you can also do:
This should be updated in the documentation as the 'icon' value is not currently specified anywhere. |
Hello,
I thought we should give more control on admin menus. At the moment wp-mvc adds a top level menu for each controller. Maybe (I think often) it is not what users want. One solution is to set
'in_menu' => false
for each page but it sounds too tedious.Let suppose we have a configuration like:
As you can see with this configuration we can mix controllers and set what links we really need to show inside the
pages
array. It is simple.To work with this kind of configuration I also rewrite
add_menu_pages
method inside /core/loaders/mvc_admin_loader.php,Then, I also have removed
process_admin_pages
because it was no longer called.What do you think? If you like the idea i will optimize the code and send a PR.
The text was updated successfully, but these errors were encountered: