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
95                 *
96                 * Note: This is a multi-use hook in that it is leveraged both for editable
97                 * post URIs and term slugs.
98                 *
99                 * @since 2.6.0
100                 *
101                 * @param string $slug The editable slug. Will be either a term slug or post URI depending
102                 *                     upon the context in which it is evaluated.
103                 */
104                $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug ) : '';
105                ?>
106                <td><input name="slug" id="slug" type="text" value="<?php echo esc_attr( $slug ); ?>" size="40" />
107                <p class="description"><?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.'); ?></p></td>
108           </tr>
109 <?php } ?>
110 <?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?>
111           <tr class="form-field term-parent-wrap">
112                <th scope="row"><label for="parent"><?php _ex( 'Parent', 'term parent' ); ?></label></th>
113                <td>