apply_filters( ‘add_trashed_suffix_to_trashed_posts’, bool $add_trashed_suffix, string $post_name, int $post_id )

In this article

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

$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_id );

Changelog

VersionDescription
5.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.