wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



walk_category_dropdown_tree › WordPress Function

Depuis2.1.0
Dépréciéen/a
walk_category_dropdown_tree ( $args )
Paramètres:
  • (mixed) $args Elements array, maximum hierarchical depth and optional additional arguments.
    Requis: Oui
Utilise:
  • Walker_CategoryDropdown
Voir:
  • Walker::walk()
Retourne:
  • (string)
Défini(e) dans:
Codex:
Changelog:
  • 5.3.0

Retrieves HTML dropdown (select) content for category list.



Source

function walk_category_dropdown_tree( ...$args ) {
	// The user's options are the third parameter.
	if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
		$walker = new Walker_CategoryDropdown();
	} else {
		/**
		 * @var Walker $walker
		 */
		$walker = $args[2]['walker'];
	}
	return $walker->walk( ...$args );
}