Description
Filters the editable slug for a post or term. Note: This is a multi-use hook in that it is leveraged both for editable post URIs and term slugs.
Occurrences
Filename | Line Number |
---|---|
wp-admin/edit-tag-form.php | 165 |
wp-admin/includes/class-wp-terms-list-table.php | 437 |
wp-admin/includes/class-wp-terms-list-table.php | 590 |
wp-admin/includes/post.php | 1498 |
wp-admin/includes/post.php | 1506 |
wp-admin/includes/meta-boxes.php | 938 |
wp-admin/includes/template.php | 323 |
Parameters
Type | Name | Description |
---|---|---|
string | $slug | The editable slug. Will be either a term slug or post URI depending upon the context in which it is evaluated. |
WP_Term|WP_Post | $tag | Term or post object. |
PHP Doc
/**
* Filters the editable slug for a post or term.
*
* Note: This is a multi-use hook in that it is leveraged both for editable
* post URIs and term slugs.
*
* @since 2.6.0
* @since 4.4.0 The `$tag` parameter was added.
*
* @param string $slug The editable slug. Will be either a term slug or post URI depending
* upon the context in which it is evaluated.
* @param WP_Term|WP_Post $tag Term or post object.
*/