[wp-trac] [WordPress Trac] #32629: Introduce pre_get_term filter
WordPress Trac
noreply at wordpress.org
Fri Jun 12 23:32:04 UTC 2015
#32629: Introduce pre_get_term filter
-----------------------------+-----------------
Reporter: westonruter | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 4.3
Component: Taxonomy | Version: 2.3
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------
For Menu Customizer (#32576) we need a filter which can intercept calls to
`get_term()` to supply with the pending `nav_menu` term that is currently
being previewed. I suggest a `pre_get_term` filter. This can be seen in
action in the Menu Customizer plugin: [https://github.com/voldemortensen
/menu-customizer/blob/981c82cad7effd1c8bb84ded0c1cc04f204e74cb/class-wp-
customize-nav-menu-setting.php#L202-L283 class-wp-customize-nav-menu-
setting.php]. See attached for patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32629>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list