Used By
Used By | Description |
---|---|
wp-includes/post.php: wp_unique_post_slug() | Computes a unique slug for the post, when given the desired slug and some post details. |
Filters the post slug before it is generated to be unique.
Returning a non-null value will short-circuit the unique slug generation, returning the passed value instead.
(string|null) Short-circuit return value.
(string) The desired slug (post_name).
(int) Post ID.
(string) The post status.
(string) Post type.
(int) Post parent ID.
File: wp-includes/post.php
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_wp_unique_post_slug