Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: add_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
242 <?php
243 if ( $can_manage )
244      wp_tag_cloud(array('link' => 'edit'));
245 else
246      wp_tag_cloud();
247 ?>
248 </div>
250 <?php if ( $can_manage ) {
251      do_action('add_tag_form_pre'); ?>
253 <div class="form-wrap">
254 <h3><?php _e('Add a New Tag'); ?></h3>
255 <div id="ajax-response"></div>
256 <form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">
257 <input type="hidden" name="action" value="addtag" />
258 <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?>
260 <div class="form-field form-required">