Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_edit_category_parent_dropdown_args

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
647                           *                                      terms. Default 'name'.
648                           *     @type bool|int $hierarchical     Whether to traverse the taxonomy
649                           *                                      hierarchy. Default 1.
650                           *     @type string   $show_option_none Text to display for the "none" option.
651                           *                                      Default "— {$parent} —",
652                           *                                      where `$parent` is 'parent_item'
653                           *                                      taxonomy label.
654                           * }
655                           */
656                          $parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args );
657
658                          wp_dropdown_categories( $parent_dropdown_args );
659                          ?>
660                          <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 ); ?>" />
661                          <?php wp_nonce_field( 'add-' . $tax_name, '_ajax_nonce-add-' . $tax_name, false ); ?>
662                          <span id="<?php echo $tax_name; ?>-ajax-response"></span>
663                     </p>
664                </div>
665           <?php endif; ?>