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 |
---|---|
706 | * terms. Default 'name'. |
707 | * @type bool|int $hierarchical Whether to traverse the taxonomy |
708 | * hierarchy. Default 1. |
709 | * @type string $show_option_none Text to display for the "none" option. |
710 | * Default "— {$parent} —", |
711 | * where `$parent` is 'parent_item' |
712 | * taxonomy label. |
713 | * } |
714 | */ |
715 | $parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args ); |
716 |
|
717 | wp_dropdown_categories( $parent_dropdown_args ); |
718 | ?> |
719 | <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 ); ?>" /> |
720 | <?php wp_nonce_field( 'add-' . $tax_name, '_ajax_nonce-add-' . $tax_name, false ); ?> |
721 | <span id="<?php echo $tax_name; ?>-ajax-response"></span> |
722 | </p> |
723 | </div> |
724 | <?php endif; ?> |