WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
34 | $category->slug = ''; |
35 |
|
36 | if ( ! isset( $category->parent ) ) |
37 | $category->parent = ''; |
38 |
|
39 | if ( ! isset( $category->description ) ) |
40 | $category->description = ''; |
41 | } |
42 |
|
43 | do_action('edit_category_form_pre', $category); |
44 |
|
45 | _fill_empty_category($category); |
46 | ?> |
47 |
|
48 | <div class="wrap"> |
49 | <?php screen_icon(); ?> |
50 | <h2><?php _e('Edit Category'); ?></h2> |
51 | <div id="ajax-response"></div> |
52 | <form name="editcat" id="editcat" method="post" action="categories.php" class="validate"> |