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
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.