On this page
apply_filters( 'add_trashed_suffix_to_trashed_posts', bool $add_trashed_suffix, string $post_name, int $post_ID )
Filters whether or not to add a __trashed suffix to trashed posts that match the name of the updated post.
Parameters
$add_trashed_suffixbool-
Whether to attempt to add the suffix.
$post_namestring-
The name of the post being updated.
$post_IDint-
Post ID.
Source
File: wp-includes/post.php. View all references
$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_ID );
Related
Used By
| Used By | Description |
|---|---|
| wp_insert_post() wp-includes/post.php | Inserts or update a post. |
Changelog
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/add_trashed_suffix_to_trashed_posts