[wp-trac] [WordPress Trac] #16075: Add Post Type Archives support in Nav Menus
WordPress Trac
noreply at wordpress.org
Thu Jan 15 14:30:16 UTC 2015
#16075: Add Post Type Archives support in Nav Menus
-----------------------------------+-----------------------------
Reporter: matzipan | Owner:
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Menus | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch ui-feedback | Focuses:
-----------------------------------+-----------------------------
Comment (by aaroncampbell):
Replying to [comment:82 mouloud]:
> In the meantime, it support the [comment:15 demand] to simply add a
filter or action to allow the plugins to edit the menu metabox, so that
third parties can propose different options, waiting for the core team to
decide which is the best.
> Thanks a lot for all the work, folks !
I'm not totally clear on your wording here, but we did put in the filter
you seem to be referencing. The filter went in in [17951] and is now
[https://core.trac.wordpress.org/browser/tags/4.1/src/wp-admin/includes
/nav-menu.php#L791 nicely documented and everything]. The plugin is old,
but you can see how to use it by looking at [https://wordpress.org/plugins
/cpt-archives-in-nav-menus/ Custom Post Type Archives in Nav Menus]. I
suppose I should try to carve out a little time to update that, at least
until we put this in core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16075#comment:83>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list