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 |
---|---|
507 | * @type string $name Value of the name attribute to use for the drop-down select element. |
508 | * Default 'parent'. |
509 | * @type string $orderby The field to order by. Default 'name'. |
510 | * @type bool $hierarchical Whether the taxonomy is hierarchical. Default true. |
511 | * @type string $show_option_none Label to display if there are no terms. Default 'None'. |
512 | * } |
513 | * @param string $taxonomy The taxonomy slug. |
514 | * @param string $context Filter context. Accepts 'new' or 'edit'. |
515 | */ |
516 | $dropdown_args = apply_filters( 'taxonomy_parent_dropdown_args', $dropdown_args, $taxonomy, 'new' ); |
517 |
|
518 | wp_dropdown_categories( $dropdown_args ); |
519 | ?> |
520 | <?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?> |
521 | <p><?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> |
522 | <?php endif; ?> |
523 | </div> |
524 | <?php endif; // is_taxonomy_hierarchical() ?> |
525 | <div class="form-field term-description-wrap"> |