Description
Filters whether or not to add a `__trashed` suffix to trashed posts that match the name of the updated post.
Occurrences
Filename | Line Number |
---|---|
wp-includes/post.php | 4509 |
Parameters
Type | Name | Description |
---|---|---|
bool | $add_trashed_suffix | Whether to attempt to add the suffix. |
string | $post_name | The name of the post being updated. |
int | $post_id | Post ID. |
PHP Doc
/**
* Filters whether or not to add a `__trashed` suffix to trashed posts that match the name of the updated post.
*
* @since 5.4.0
*
* @param bool $add_trashed_suffix Whether to attempt to add the suffix.
* @param string $post_name The name of the post being updated.
* @param int $post_id Post ID.
*/