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 |
---|---|
54 | <input type="hidden" name="cat_ID" value="<?php echo esc_attr($category->term_id) ?>" /> |
55 | <?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-category_' . $cat_ID); ?> |
56 | <table class="form-table"> |
57 | <tr class="form-field form-required"> |
58 | <th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th> |
59 | <td><input name="cat_name" id="cat_name" type="text" value="<?php echo esc_attr($category->name); ?>" size="40" aria-required="true" /><br /> |
60 | </tr> |
61 | <tr class="form-field"> |
62 | <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th> |
63 | <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo esc_attr(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br /> |
64 | <span class="description"><?php _e('The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></span></td> |
65 | </tr> |
66 | <tr class="form-field"> |
67 | <th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th> |
68 | <td> |
69 | <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'exclude' => $category->term_id, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br /> |
70 | <span class="description"><?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?></span> |
71 | </td> |
72 | </tr> |