Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_tag_form_pre

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
13 if ( !current_user_can('manage_categories') )
14      wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
15
16 if ( empty($tag_ID) ) { ?>
17      <div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
18 <?php
19      return;
20 }
21
22 do_action('edit_tag_form_pre', $tag); ?>
23
24 <div class="wrap">
25 <?php screen_icon(); ?>
26 <h2><?php _e('Edit Tag'); ?></h2>
27 <div id="ajax-response"></div>
28 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">
29 <input type="hidden" name="action" value="editedtag" />
30 <input type="hidden" name="tag_ID" value="<?php echo esc_attr($tag->term_id) ?>" />
31 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy) ?>" />