apply_filters( 'editable_slug', string $slug , object|WP_Post $tag )
Filters the editable slug.
Description
Note: This is a multi-use hook in that it is leveraged both for editable post URIs and term slugs.
Parameters
- $slug
-
The editable slug. Will be either a term slug or post URI depending upon the context in which it is evaluated.
- $tag
-
Term or WP_Post object.
Source
Changelog
Version | Description |
---|---|
WP-4.4.0 | The $tag parameter was added. |
WP-2.6.0 | Introduced. |