comment_flood_trigger

ACTION wp-includes\comment.php (ligne 904) github
Fires before the comment flood message is triggered.

Paramètres

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

Utilisation

// 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é');
}

Actualités

Chargement des actualités...