wp_filter_wp_template_unique_post_slug
- %1$s is private and should not be used in themes or plugins directly.
wp_filter_wp_template_unique_post_slug ( $override_slug, $slug, $post_id, $post_status, $post_type )
Access:Parameters:- (string) override_slug The filtered value of the slug (starts as `null` from apply_filter).
- (string) slug The original/un-filtered slug (post_name).
- (int) post_id Post ID.
- (string) post_status No uniqueness checks are made if the post is still draft or pending.
- (string) post_type Post type.
Returns:- (string) The original, desired slug.
Defined at: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
Generates a unique slug for templates.