Core Function
View Source on Trac ↗ wp_add_trashed_suffix_to_post_name_for_trashed_posts()
wp_add_trashed_suffix_to_post_name_for_trashed_posts( mixed $post_name, mixed $post_id = 0 ) Adds a suffix if any trashed posts have a given slug.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $post_name string | Post slug. Required |
| $post_id int | Optional. Post ID that should be ignored. Default 0. |
Return Value
(void)
No return value description available.
Function Information
Since Version
4.5.0
Source File
wp-includes/post.php
Advertisement