On this page
apply_filters( 'wp_unique_post_slug', string $slug, int $post_ID, string $post_status, string $post_type, int $post_parent, string $original_slug )
Filters the unique post slug.
Parameters
$slugstring-
The post slug.
$post_IDint-
Post ID.
$post_statusstring-
The post status.
$post_typestring-
Post type.
$post_parentint-
Post parent ID
$original_slugstring-
The original post slug.
Source
File: wp-includes/post.php. View all references
return apply_filters( 'wp_unique_post_slug', $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug );
Related
Used By
| Used By | Description |
|---|---|
| wp_unique_post_slug() wp-includes/post.php | Computes a unique slug for the post, when given the desired slug and some post details. |
Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_unique_post_slug