Filter hook 'wp_unique_post_slug'

in WP Core File wp-includes/post.php at line 5329

Description

Filters the unique post slug.

Occurrences

Filename Line Number
wp-includes/post.php 5329

Parameters

Type Name Description
string $slug The post slug.
int $post_id Post ID.
string $post_status The post status.
string $post_type Post type.
int $post_parent Post parent ID
string $original_slug The original post slug.

PHP Doc

/**
	 * Filters the unique post slug.
	 *
	 * @since 3.3.0
	 *
	 * @param string $slug          The post slug.
	 * @param int    $post_id       Post ID.
	 * @param string $post_status   The post status.
	 * @param string $post_type     Post type.
	 * @param int    $post_parent   Post parent ID
	 * @param string $original_slug The original post slug.
	 */