wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



walk_category_tree › WordPress Function

Da2.1.0
Deprecaton/a
walk_category_tree ( $args )
Parametri:
  • (mixed) $args Elements array, maximum hierarchical depth and optional additional arguments.
    Richiesto:
Usi:
  • Walker_Category
Vedi:
  • Walker::walk()
Ritorna:
  • (string)
Definito a:
Codex:
ChangeLog:
  • 5.3.0

Retrieves HTML list content for category list.



Sorgenti

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