Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: {$taxonomy}_pre_add_form

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
438      /**
439       * Fires before the Add Term form for all taxonomies.
440       *
441       * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
442       *
443       * @since 3.0.0
444       *
445       * @param string $taxonomy The taxonomy slug.
446       */
447      do_action( "{$taxonomy}_pre_add_form", $taxonomy );
448 ?>
449
450 <div class="form-wrap">
451 <h2><?php echo $tax->labels->add_new_item; ?></h2>
452 <form id="addtag" method="post" action="edit-tags.php" class="validate"
453 <?php
454 /**
455  * Fires at the beginning of the Add Tag form.
456  *