add_trashed_suffix_to_trashed_posts

FILTER wp-includes\post.php (ligne 4803) github
Filters whether or not to add a `__trashed` suffix to trashed posts that match the name of the updated post.

Paramètres

Entrée :
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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...