Skip to content
Commit 1d12db57 authored by Nikolay Bachiyski's avatar Nikolay Bachiyski
Browse files

Make menus manipulation easier for plugin developers

 * Add a wp_nav_menu_objects filter, which gets a sorted list of all menu node objects in the currently rendered menu
 * Add current, current_item_ancestor and current_item_parent boolean member variables to each menu node object, which are true when the item has the current-menu-item, current-menu-ancestor or current-menu-parent CSS class respectively


git-svn-id: https://core.svn.wordpress.org/trunk@15544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 7077aea0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment