Update hook docs for the `editable_slug` filter as it is evaluated in more than just a term slug context, it is also leveraged for use with post URIs.

See #31569.


git-svn-id: https://develop.svn.wordpress.org/trunk@31688 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2015-03-09 07:03:12 +00:00
parent 1f90e70b7d
commit 5bbb7dd80d
1 changed files with 6 additions and 2 deletions

View File

@ -91,11 +91,15 @@ do_action( "{$taxonomy}_term_edit_form_tag" );
<th scope="row"><label for="slug"><?php _e( 'Slug' ); ?></label></th>
<?php
/**
* Filter the editable term slug.
* Filter the editable slug.
*
* Note: This is a multi-use hook in that it is leveraged both for editable
* post URIs and term slugs.
*
* @since 2.6.0
*
* @param string $tag_slug The current term slug.
* @param string $slug The editable slug. Will be either a term slug or post URI depending
* upon the context in which it is evaluated.
*/
$slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug ) : '';
?>