WC_Product_Cat_List_Walker::end_el()
Ends the element output, if needed.
Method of the class: WC_Product_Cat_List_Walker{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Product_Cat_List_Walker = new WC_Product_Cat_List_Walker(); $WC_Product_Cat_List_Walker->end_el( $output, $cat, $depth, $args );
- $output(string) (required) (passed by reference — &)
- Passed by reference. Used to append additional content.
- $cat(object) (required)
- Category.
- $depth(int)
- Depth of category. Not used.
- $args(array)
- Only uses 'list' for whether should append to output.
Default: array()
Notes
- See: Walker::end_el()
Changelog
Since 2.1.0 | Introduced. |
WC_Product_Cat_List_Walker::end_el() WC Product Cat List Walker::end el code WC 7.7.0
public function end_el( &$output, $cat, $depth = 0, $args = array() ) { $output .= "</li>\n"; }