Filters whether or not to add a __trashed suffix to trashed posts that match the name of the updated post.
$add_trashed_suffixbool
$post_namestring
$post_idint
$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id );
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_trashed_suffix_to_trashed_posts