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 |
---|---|
144 | * post URIs and term slugs. |
145 | * |
146 | * @since 2.6.0 |
147 | * @since 4.4.0 The `$tag` parameter was added. |
148 | * |
149 | * @param string $slug The editable slug. Will be either a term slug or post URI depending |
150 | * upon the context in which it is evaluated. |
151 | * @param WP_Term|WP_Post $tag Term or post object. |
152 | */ |
153 | $slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : ''; |
154 | ?> |
155 | <td><input name="slug" id="slug" type="text" value="<?php echo esc_attr( $slug ); ?>" size="40" /> |
156 | <p 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.' ); ?></p></td> |
157 | </tr> |
158 | <?php } ?> |
159 | <?php if ( is_taxonomy_hierarchical( $taxonomy ) ) : ?> |
160 | <tr class="form-field term-parent-wrap"> |
161 | <th scope="row"><label for="parent"><?php echo esc_html( $tax->labels->parent_item ); ?></label></th> |
162 | <td> |