Fires before the comment flood message is triggered.
$time_lastcomment, $time_newcomment
Sortie :
@param int $time_lastcomment Timestamp of when the last comment was posted. @param int $time_newcomment Timestamp of when the new comment was posted.
// Ajouter une fonction au hook action 'comment_flood_trigger'
add_action('comment_flood_trigger', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($time_lastcomment, $time_newcomment) {
// Votre code ici
error_log('Hook comment_flood_trigger déclenché');
}
Chargement des actualités...