[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/ -> class-walker-category.php (summary)

Taxonomy API: Walker_Category class

File Size: 275 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Walker_Category:: (4 methods):
  start_lvl()
  end_lvl()
  start_el()
  end_el()


Class: Walker_Category  - X-Ref

Core class used to create an HTML list of categories.

start_lvl( &$output, $depth = 0, $args = array()   X-Ref
Starts the list before the elements are added.

param: string $output Used to append additional content. Passed by reference.
param: int    $depth  Optional. Depth of category. Used for tab indentation. Default 0.
param: array  $args   Optional. An array of arguments. Will only append content if style argument
since: 2.1.0

end_lvl( &$output, $depth = 0, $args = array()   X-Ref
Ends the list of after the elements are added.

param: string $output Used to append additional content. Passed by reference.
param: int    $depth  Optional. Depth of category. Used for tab indentation. Default 0.
param: array  $args   Optional. An array of arguments. Will only append content if style argument
since: 2.1.0

start_el( &$output, $data_object, $depth = 0, $args = array()   X-Ref
Starts the element output.

param: string  $output            Used to append additional content (passed by reference).
param: WP_Term $data_object       Category data object.
param: int     $depth             Optional. Depth of category in reference to parents. Default 0.
param: array   $args              Optional. An array of arguments. See wp_list_categories().
param: int     $current_object_id Optional. ID of the current category. Default 0.
since: 2.1.0
since: 5.9.0 Renamed `$category` to `$data_object` and `$id` to `$current_object_id`

end_el( &$output, $data_object, $depth = 0, $args = array()   X-Ref
Ends the element output, if needed.

param: string $output      Used to append additional content (passed by reference).
param: object $data_object Category data object. Not used.
param: int    $depth       Optional. Depth of category. Not used.
param: array  $args        Optional. An array of arguments. Only uses 'list' for whether should
since: 2.1.0
since: 5.9.0 Renamed `$page` to `$data_object` to match parent class for PHP 8 named parameter support.



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1