我希望能够理解为WordPress函数提供的标准函数描述。特别是,有人能解释一下下面的例子吗?
here
:
用法
<?php wp_list_categories( $args ); ?>
默认使用
<?php $args = array(
'show_option_all' => ,
'orderby' => 'name',
'order' => 'ASC',
'show_last_update' => 0,
'style' => 'list',
'show_count' => 0,
'hide_empty' => 1,
'use_desc_for_title' => 1,
'child_of' => 0,
'feed' => ,
'feed_type' => ,
'feed_image' => ,
'exclude' => ,
'exclude_tree' => ,
'include' => ,
'current_category' => 0,
'hierarchical' => true,
'title_li' => __( 'Categories' ),
'number' => NULL,
'echo' => 1,
'depth' => 0 ); ?>
我能猜到大部分,但特别是我不能猜到:
-
逗号后的空白是什么意思?空字符串?
-
这是什么?
-
如何调用函数?像python这样的关键字,位置参数,还是我必须传递一个数组?
-
关于wordpress函数描述还有什么没有在这个例子中介绍的吗?
谢谢,
克里斯