Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_category_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
15 if ( 'category' == $taxonomy ) {
16      /**
17        * Fires before the Edit Category form.
18       *
19       * @since 2.1.0
20       * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
21       *
22       * @param object $tag Current category term object.
23       */
24      do_action( 'edit_category_form_pre', $tag );
25 } elseif ( 'link_category' == $taxonomy ) {
26      /**
27       * Fires before the Edit Link Category form.
28       *
29       * @since 2.3.0
30       * @deprecated 3.0.0 Use {$taxonomy}_pre_edit_form instead.
31       *
32       * @param object $tag Current link category term object.
33       */