apply_filters( ‘wp_unique_post_slug’, string $slug, int $post_id, string $post_status, string $post_type, int $post_parent, string $original_slug )

In this article

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

return apply_filters( 'wp_unique_post_slug', $slug, $post_id, $post_status, $post_type, $post_parent, $original_slug );

Changelog

VersionDescription
3.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.