Fires after comments are sent to the Trash.
$post_id, $statuses
Sortie :
@param int $post_id Post ID. @param array $statuses Array of comment statuses.
// Ajouter une fonction au hook action 'trashed_post_comments'
add_action('trashed_post_comments', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($post_id, $statuses) {
// Votre code ici
error_log('Hook trashed_post_comments déclenché');
}
Chargement des actualités...