Core Function
View Source on Trac ↗ wp_add_trashed_suffix_to_post_name_for_post()
wp_add_trashed_suffix_to_post_name_for_post( mixed $post ) Adds a trashed suffix for a given post.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $post WP_Post | The post. Required |
Return Value
(string)
New slug for the post.
Function Information
Since Version
4.5.0
Source File
wp-includes/post.php
Advertisement