[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/classes/ -> class-bp-walker-category-checklist.php (summary)

(no description)

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

Defines 1 class

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


Class: BP_Walker_Category_Checklist  - X-Ref

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

A modification of WordPress 4.4.1's Walker_Category_Checklist class which prints term description
instead of term name, and makes it work for non-hierarchical taxonomys. Some lines have undergone
slight adjustment to meet modern coding standards, but any improvements should be contributed upstream.

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

param: string $output Passed by reference. Used to append additional content.
param: int    $depth  Depth of category. Used for tab indentation.
param: array  $args   An array of arguments.
since: 2.5.0

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

param: string $output Passed by reference. Used to append additional content.
param: int    $depth  Depth of category. Used for tab indentation.
param: array  $args   An array of arguments.
since: 2.5.0

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

param: string $output   Passed by reference. Used to append additional content.
param: object $category The current term object.
param: int    $depth    Depth of the term in reference to parents. Default 0.
param: array  $args     An array of arguments.
param: int    $id       ID of the current term.

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

param: string $output   Passed by reference. Used to append additional content.
param: object $category 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()
since: 2.5.0



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