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
92 <?php
93 /**
94  * Fires inside the Edit Term form tag.
95  *
96  * The dynamic portion of the hook name, `$taxonomy`, refers to
97  * the taxonomy slug.
98  *
99  * @since 3.7.0
100  */
101 do_action( "{$taxonomy}_term_edit_form_tag" );
102 ?>>
103 <input type="hidden" name="action" value="editedtag" />
104 <input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" />
105 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" />
106 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?>
107      <table class="form-table">
108           <tr class="form-field form-required term-name-wrap">
109                <th scope="row"><label for="name"><?php _ex( 'Name', 'term name' ); ?></label></th>
110                <td><input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo esc_attr($tag->name); ?>" size="40" aria-required="true" />