Changes between Initial Version and Version 4 of Ticket #32629
- Timestamp:
- 06/14/2015 05:44:59 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32629
- Property Keywords has-patch added
- Property Owner set to
- Property Status new → reviewing
- Property Component Taxonomy → Menus
- Property Summary Introduce pre_get_term filter → Introduce filter for wp_get_nav_menu_object()
-
Ticket #32629 – Description
initial v4 1 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-L283class-wp-customize-nav-menu-setting.php]. See attached for patch.1 For Menu Customizer (#32576) we need a filter which can filter the return value for `wp_get_nav_menu_object()` to supply with the pending `nav_menu` term that is currently being previewed. This can be seen in action in the Menu Customizer plugin: [https://github.com/voldemortensen/menu-customizer/blob/3738806e6851cffb059d311677e214bb99d94c15/class-wp-customize-nav-menu-setting.php#L196-L249 class-wp-customize-nav-menu-setting.php]. See attached for patch. 2 2
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)