wordpress / latest / hooks / wp_unique_post_slug.html

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

$slug string
The post slug.
$post_ID int
Post ID.
$post_status string
The post status.
$post_type string
Post type.
$post_parent int
Post parent ID
$original_slug string
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 );

Used By

Used By Description

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