#19464 closed enhancement (maybelater)
Auto add do_action for menu in admin
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Menus | Keywords: | close |
Focuses: | Cc: |
Description
In menu's there is this feature: "Automatically add new top-level pages"
I'm in a process to implement "Automatically add categories" and "Automatically add new subpages of page:", but unfortunately there is no action which to hook so I could insert HTML right after or before the "auto-add-pages" in my plugin.
So I suggest to add a new action or filter like "menu_auto_add" so it would be simple to insert the HTML after the auto-add-pages.
Attachments (1)
Change History (8)
This ticket was mentioned in Slack in #core by briandichiara. View the logs.
10 years ago
#4
@
10 years ago
- Keywords close added
I'd suggest not doing this just yet, or like this, if we can help it. Based on the 3 years of inactivity, it doesn't seem pressing.
In the next couple releases (likely 4.3, maybe 4.2), we'll be merging the Menu Customizer into core, adding menu management to the Customizer. We'd like to deprecate the admin screen at the same time, making the Customizer the canonical place for managing menus. In the Customizer, this is as simple as leveraging the Customizer API to add new controls to the various menus sections.
#5
@
10 years ago
I just want to add that ticket #29854 was also asking for the same thing, however was incorrectly tagged as duplicate of another ticket, when it should have been tagged as a duplicate of this one.
As for menu customizer, I'm not very familiar with the project, but do we already know that it will be going into core? I feel like this area would be a good place to have a hook for custom menu settings, and don't want to assume the project will go into core. And even if it did, wouldn't benefit from having a similar hook.
added new hook after_menu_settings that passes the ID of the current selected menu to appear below auto-add-pages and menu-theme-locations