Class WC_Product_Cat_Dropdown_Walker

Walker
Extended by WC_Product_Cat_Dropdown_Walker
Package: WooCommerce\Classes\Walkers
Author: WooThemes
Located at includes/walkers/class-product-cat-dropdown-walker.php

Methods summary

public
# start_el( string & $output, object $cat, integer $depth = 0, integer $args = array(), mixed $current_object_id = 0 )

Parameters

$output
string
$output Passed by reference. Used to append additional content.
$cat
object
$category Category data object.
$depth
integer
$depth Depth of category in reference to parents.
$args
integer
$current_object_id
$current_object_id

Since

2.1.0

See

Walker::start_el()
public null
# display_element( object $element, array & $children_elements, integer $max_depth, integer $depth = 0, array $args, string & $output )

Traverse elements to create list from elements.

Traverse elements to create list from elements.

Display one element if the element doesn't have any children otherwise, display the element and its children. Will only traverse up to the max depth and no ignore elements under that depth. It is possible to set the max depth to include all depths, see walk() method.

This method shouldn't be called directly, use the walk() method instead.

Parameters

$element
object
$element Data object
$children_elements
array
$children_elements List of elements to continue traversing.
$max_depth
integer
$max_depth Max depth to traverse.
$depth
integer
$depth Depth of current element.
$args
array
$args
$output
string
$output Passed by reference. Used to append additional content.

Returns

null
Null on failure with no changes to parameters.

Since

2.5.0

Magic methods summary

Properties summary

public string $tree_type
#
public array $db_fields
#
WooCommerce API documentation generated by ApiGen 2.8.0