Core Class
View Source on Trac ↗
Core Class
Walker_Nav_Menu
class Walker_Nav_Menu
// Constructor: function Object() { [native code] } Core class used to implement an HTML list of nav menu items.
Methods 6 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor. |
| start_lvl() void | Starts the list before the elements are added.
Parameters: $output: mixed, $depth: mixed, $args: mixed |
| end_lvl() void | Ends the list of after the elements are added.
Parameters: $output: mixed, $depth: mixed, $args: mixed |
| start_el() void | Starts the element output.
Parameters: $output: mixed, $data_object: mixed, $depth: mixed, $args: mixed, $current_object_id: mixed |
| end_el() void | Ends the element output, if needed.
Parameters: $output: mixed, $data_object: mixed, $depth: mixed, $args: mixed |
| build_atts() string | Builds a string of HTML attributes from an array of key/value pairs.
Parameters: $atts: mixed |
Properties
| Property / Type | Description |
|---|---|
| $tree_type mixed public | No description available. |
| $db_fields mixed public | No description available. |
| $privacy_policy_url mixed public | No description available. |
Class Information
Since Version
3.0.0
Source File
wp-includes/class-walker-nav-menu.php
Advertisement