Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: editable_slug

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
25 <?php wp_nonce_field($nonce_action); ?>
26      <table class="form-table">
27           <tr class="form-field form-required">
28                <th scope="row" valign="top"><label for="cat_name"><?php _e('Category Name') ?></label></th>
29                <td><input name="cat_name" id="cat_name" type="text" value="<?php echo attribute_escape($category->name); ?>" size="40" aria-required="true" /><br />
30             <?php _e('The name is used to identify the category almost everywhere, for example under the post or in the category widget.'); ?></td>
31           </tr>
32           <tr class="form-field">
33                <th scope="row" valign="top"><label for="category_nicename"><?php _e('Category Slug') ?></label></th>
34                <td><input name="category_nicename" id="category_nicename" type="text" value="<?php echo attribute_escape(apply_filters('editable_slug', $category->slug)); ?>" size="40" /><br />
35             <?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></td>
36           </tr>
37           <tr class="form-field">
38                <th scope="row" valign="top"><label for="category_parent"><?php _e('Category Parent') ?></label></th>
39                <td>
40                       <?php wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'category_parent', 'orderby' => 'name', 'selected' => $category->parent, 'hierarchical' => true, 'show_option_none' => __('None'))); ?><br />
41                 <?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.'); ?>
42                  </td>
43           </tr>