WordPress at a glance
filter is not described

editable_slug filter-hook . WP 2.6.0

Filters the editable slug.

Note: This is a multi-use hook in that it is leveraged both for editable post URIs and term slugs.

Usage

add_filter( 'editable_slug', 'filter_function_name_725', 10, 2 );
function filter_function_name_725( $slug, $tag ){
	// filter...

	return $slug;
}
$slug(string)
The editable slug. Will be either a term slug or post URI depending upon the context in which it is evaluated.
$tag(object/WP_Post)
Term or WP_Post object.

Notes

  • Since 4.4.0 The $tag parameter was added.

Where the hook is called

In file: /wp-admin/edit-tag-form.php
editable_slug
wp-admin/edit-tag-form.php 140
$slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : '';
wp-admin/includes/template.php 283
'<div class="post_name">' . apply_filters( 'editable_slug', $post->post_name, $post ) . '</div>
wp-admin/includes/class-wp-terms-list-table.php 388
$out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>';
wp-admin/includes/class-wp-terms-list-table.php 511
return apply_filters( 'editable_slug', $tag->slug, $tag );
wp-admin/includes/meta-boxes.php 786
$editable_slug = apply_filters( 'editable_slug', $post->post_name, $post );
wp-admin/includes/post.php 1288
$uri = apply_filters( 'editable_slug', $uri, $post );
wp-admin/includes/post.php 1295
$permalink = array( $permalink, apply_filters( 'editable_slug', $post->post_name, $post ) );

Where the hook is used (in WP core)

wp-includes/default-filters.php 245
add_filter( 'editable_slug', 'urldecode' );
wp-includes/default-filters.php 246
add_filter( 'editable_slug', 'esc_textarea' );