Walker_Nav_Menu_Checklist::__construct() WordPress Method
The Walker_Nav_Menu_Checklist::__construct() method is used to create a new Walker_Nav_Menu_Checklist object. This method takes two arguments: the first is an array of menu items, and the second is an integer representing the depth of the menu.
Walker_Nav_Menu_Checklist::__construct( array|false $fields = false ) #
Contents
Parameters
- $fields
(array|false)(Optional)Database fields to use.
Default value: false
Source
File: wp-admin/includes/class-walker-nav-menu-checklist.php
public function __construct( $fields = false ) { if ( $fields ) { $this->db_fields = $fields; } }
Expand full source codeCollapse full source codeView on TracView on GitHub