Reading a Wordpress function description

Posted by Casebash on Stack Overflow See other posts from Stack Overflow or by Casebash
Published on 2009-09-26T11:48:09Z Indexed on 2010/04/07 1:13 UTC
Read the original article Hit count: 319

Filed under:
|

I want to be able to understand the standard function description that is provided for Wordpress functions. In particular, could someone explain the following example from here:

Usage

<?php wp_list_categories( $args ); ?> 

Default Usage

<?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 ); ?>

I can guess most of it, but in particular I can't guess:

  • What does blank after the comma mean? Empty string?
  • What is the __?
  • How do I call the function? Keyword like python, positional arguments or do I have to pass an array?
  • Is there anything else about Wordpress function descriptions which isn't covered in this example?

Thanks,

Chris

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about basics