Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_terms_checklist_args

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
90 function wp_terms_checklist($post_id = 0, $args = array()) {
91       $defaults = array(
92           'descendants_and_self' => 0,
93           'selected_cats' => false,
94           'popular_cats' => false,
95           'walker' => null,
96           'taxonomy' => 'category',
97           'checked_ontop' => true
98      );
99      $args = apply_filters( 'wp_terms_checklist_args', $args, $post_id );
100
101      extract( wp_parse_args($args, $defaults), EXTR_SKIP );
102
103      if ( empty($walker) || !is_a($walker, 'Walker') )
104           $walker = new Walker_Category_Checklist;
105
106      $descendants_and_self = (int) $descendants_and_self;
107
108      $args = array('taxonomy' => $taxonomy);