Description
Starts the element output. to match parent class for PHP 8 named parameter support.
Occurrences
Filename | Line Number |
---|---|
wp-includes/class-walker-category.php | 106 |
wp-includes/class-walker-category-dropdown.php | 66 |
wp-includes/category-template.php | 437 |
wp-includes/category-template.php | 446 |
wp-includes/category-template.php | 454 |
Parameters
Type | Name | Description |
---|---|---|
string | $output | Used to append additional content (passed by reference). |
WP_Term | $data_object | Category data object. |
int | $depth | Optional. Depth of category in reference to parents. Default 0. |
array | $args | Optional. An array of arguments. See wp_list_categories(). Default empty array. |
int | $current_object_id | Optional. ID of the current category. Default 0. |
PHP Doc
/**
* Starts the element output.
*
* @since 2.1.0
* @since 5.9.0 Renamed `$category` to `$data_object` and `$id` to `$current_object_id`
* to match parent class for PHP 8 named parameter support.
*
* @see Walker::start_el()
*
* @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().
* Default empty array.
* @param int $current_object_id Optional. ID of the current category. Default 0.
*/