Filters whether or not to add a `__trashed` suffix to trashed posts that match the name of the updated post.
true, $post_name, $post_id
Sortie :
@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.
// Modifier la valeur avec le filtre 'add_trashed_suffix_to_trashed_posts'
add_filter('add_trashed_suffix_to_trashed_posts', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(true) {
// Modifier la valeur
return true;
}
Chargement des actualités...