Walker_Nav_Menu::build_atts( array $atts = array() ): string

In this article

Builds a string of HTML attributes from an array of key/value pairs.

Description

Empty values are ignored.

Parameters

$attsarrayoptional
An array of HTML attribute key/value pairs.

Default:array()

Return

string A string of HTML attributes.

Source

		$n = '';
	} else {
		$t = "\t";
		$n = "\n";
	}
	$output .= "</li>{$n}";
}

/**
 * Builds a string of HTML attributes from an array of key/value pairs.

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.