[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Taxonomy API: Walker_Category_Checklist class

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

Defines 1 class

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


Class: Walker_Category_Checklist  - X-Ref

Core walker class to output an unordered list of category checkbox input elements.

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

since: 2.5.1
param: string $output Used to append additional content (passed by reference).
param: int    $depth  Depth of category. Used for tab indentation.
param: array  $args   An array of arguments. @see wp_terms_checklist()

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

since: 2.5.1
param: string $output Used to append additional content (passed by reference).
param: int    $depth  Depth of category. Used for tab indentation.
param: array  $args   An array of arguments. @see wp_terms_checklist()

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

since: 2.5.1
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       The current term object.
param: int     $depth             Depth of the term in reference to parents. Default 0.
param: array   $args              An array of arguments. @see wp_terms_checklist()
param: int     $current_object_id Optional. ID of the current term. Default 0.

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

since: 2.5.1
since: 5.9.0 Renamed `$category` 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: WP_Term $data_object The current term object.
param: int     $depth       Depth of the term in reference to parents. Default 0.
param: array   $args        An array of arguments. @see wp_terms_checklist()



Generated: Tue Apr 23 01:00:02 2024 Cross-referenced by PHPXref 0.7.1