Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: {$taxonomy}_term_edit_form_tag

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
68 <?php
69 /**
70  * Fires inside the Edit Term form tag.
71  *
72  * The dynamic portion of the hook name, `$taxonomy`, refers to
73  * the taxonomy slug.
74  *
75  * @since 3.7.0
76  */
77 do_action( "{$taxonomy}_term_edit_form_tag" );
78 ?>>
79 <input type="hidden" name="action" value="editedtag" />
80 <input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" />
81 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" />
82 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
83      <table class="form-table">
84           <tr class="form-field form-required term-name-wrap">
85                <th scope="row"><label for="name"><?php _ex( 'Name', 'term name' ); ?></label></th>
86                <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />