Home/Hooks/add_trashed_suffix_to_trashed_posts
FILTER

add_trashed_suffix_to_trashed_posts

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

wp-includes/post.php
Line 4728
3 Parameters
View Source

Usage

add_filter( 'add_trashed_suffix_to_trashed_posts', 'your_callback_function', 10, 3 );

Filter Callback:

function your_callback_function( true, $post_name, $post_id ) {
    // Your code here
    return true;
}

Parameters

true

Parameter 1

$post_name

Parameter 2

$post_id

Parameter 3

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.