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 |
---|---|
630 | * terms. Default 'name'. |
631 | * @type bool|int $hierarchical Whether to traverse the taxonomy |
632 | * hierarchy. Default 1. |
633 | * @type string $show_option_none Text to display for the "none" option. |
634 | * Default "— {$parent} —", |
635 | * where `$parent` is 'parent_item' |
636 | * taxonomy label. |
637 | * } |
638 | */ |
639 | $parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args ); |
640 |
|
641 | wp_dropdown_categories( $parent_dropdown_args ); |
642 | ?> |
643 | <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 ); ?>" /> |
644 | <?php wp_nonce_field( 'add-' . $tax_name, '_ajax_nonce-add-' . $tax_name, false ); ?> |
645 | <span id="<?php echo $tax_name; ?>-ajax-response"></span> |
646 | </p> |
647 | </div> |
648 | <?php endif; ?> |