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
270 <?php
271 if ( $can_manage )
272      wp_tag_cloud(array('taxonomy' => $taxonomy, 'link' => 'edit'));
273 else
274      wp_tag_cloud(array('taxonomy' => $taxonomy));
275 ?>
276 </div>
277
278 <?php if ( $can_manage ) {
279      do_action('add_tag_form_pre'); ?>
280
281 <div class="form-wrap">
282 <h3><?php _e('Add a New Tag'); ?></h3>
283 <form id="addtag" method="post" action="edit-tags.php" class="validate">
284 <input type="hidden" name="action" value="add-tag" />
285 <input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
286 <?php wp_nonce_field('add-tag'); ?>
287
288 <div class="form-field form-required">