WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
155 | 'name' => 'parent', |
156 | 'orderby' => 'name', |
157 | 'selected' => $tag->parent, |
158 | 'exclude_tree' => $tag->term_id, |
159 | 'hierarchical' => true, |
160 | 'show_option_none' => __( 'None' ), |
161 | ); |
162 |
|
163 | /** This filter is documented in wp-admin/edit-tags.php */ |
164 | $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'edit' ); |
165 | wp_dropdown_categories( $dropdown_args ); ?> |
166 | <?php if ( 'category' == $taxonomy ) : ?> |
167 | <p class="description"><?php _e( 'Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.' ); ?></p> |
168 | <?php else : ?> |
169 | <p class="description"><?php _e( 'Assign a parent term to create a hierarchy. The term Jazz, for example, would be the parent of Bebop and Big Band.' ); ?></p> |
170 | <?php endif; ?> |
171 | </td> |
172 | </tr> |
173 | <?php endif; // is_taxonomy_hierarchical() ?> |