检索类别列表的HTML下拉列表(选择)内容。
原型
walk_category_dropdown_tree()
返回值
(string)
源文件
路径:wp-includes/category-template.php
<?php
...
function walk_category_dropdown_tree() {
$args = func_get_args();
// the user's options are the third parameter
if ( empty( $args[2]['walker'] ) || ! ( $args[2]['walker'] instanceof Walker ) ) {
$walker = new Walker_CategoryDropdown;
} else {
$walker = $args[2]['walker'];
}
return call_user_func_array( array( $walker, 'walk' ), $args );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/walk_category_dropdown_tree/