[ 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.

since: 2.1.0
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

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

since: 2.1.0
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

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

since: 2.1.0
since: 5.9.0 Renamed `$category` to `$data_object` and `$id` to `$current_object_id`
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.

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

since: 2.1.0
since: 5.9.0 Renamed `$page` to `$data_object` to match parent class for PHP 8 named parameter support.
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



Generated: Wed Oct 20 01:00:08 2021 Cross-referenced by PHPXref 0.7.1