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
420      /**
421       * Fires before the Add Term form for all taxonomies.
422       *
423       * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
424       *
425       * @since 3.0.0
426       *
427       * @param string $taxonomy The taxonomy slug.
428       */
429      do_action( "{$taxonomy}_pre_add_form", $taxonomy );
430 ?>
431
432 <div class="form-wrap">
433 <h3><?php echo $tax->labels->add_new_item; ?></h3>
434 <?php
435 /**
436  * Fires at the beginning of the Add Tag form.
437  *
438  * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.