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 |
---|---|
670 | * terms. Default 'name'. |
671 | * @type bool|int $hierarchical Whether to traverse the taxonomy |
672 | * hierarchy. Default 1. |
673 | * @type string $show_option_none Text to display for the "none" option. |
674 | * Default "— {$parent} —", |
675 | * where `$parent` is 'parent_item' |
676 | * taxonomy label. |
677 | * } |
678 | */ |
679 | $parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args ); |
680 |
|
681 | wp_dropdown_categories( $parent_dropdown_args ); |
682 | ?> |
683 | <input type="button" id="<?php echo $tax_name; ?>-add-submit" data-wp-lists="add:<?php echo $tax_name; ?>checklist:<?php echo $tax_name; ?>-add" class="button category-add-submit" value="<?php echo esc_attr( $taxonomy->labels->add_new_item ); ?>" /> |
684 | <?php wp_nonce_field( 'add-' . $tax_name, '_ajax_nonce-add-' . $tax_name, false ); ?> |
685 | <span id="<?php echo $tax_name; ?>-ajax-response"></span> |
686 | </p> |
687 | </div> |
688 | <?php endif; ?> |