WordPress at Your Fingertips
filter is not described

add_trashed_suffix_to_trashed_posts filter-hook . WP 5.4.0

Filters whether or not to add a __trashed suffix to trashed posts that match the name of the updated post.


add_filter( 'add_trashed_suffix_to_trashed_posts', 'filter_function_name_7558', 10, 3 );
function filter_function_name_7558( $add_trashed_suffix, $post_name, $post_ID ){
	// filter...

	return $add_trashed_suffix;
Whether to attempt to add the suffix.
The name of the post being updated.
Post ID.

Where the hook is called

wp-includes/post.php 4122
$add_trashed_suffix = apply_filters( 'add_trashed_suffix_to_trashed_posts', true, $post_name, $post_ID );

Where in WP core the hook is used WordPress

Usage not found.