Core Function
View Source on Trac ↗ _sort_nav_menu_items()
_sort_nav_menu_items( mixed $a, mixed $b ) Sort menu items by the desired key.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $a object | The first object to compare Required |
| $b object | The second object to compare Required |
Return Value
(int)
-1, 0, or 1 if $a is considered to be respectively less than, equal to, or greater than $b.
Function Information
Since Version
3.0.0
Source File
wp-includes/deprecated.php
Advertisement