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 ) #


Parameters

$fields

(array|false)(Optional)Database fields to use.

Default value: false


Top ↑

Source

File: wp-admin/includes/class-walker-nav-menu-checklist.php

	public function __construct( $fields = false ) {
		if ( $fields ) {
			$this->db_fields = $fields;
		}
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.