comment_flood_filter

FILTER wp-includes\comment.php (ligne 893) github
Filters the comment flood status.

Paramètres

Entrée :
false, $time_lastcomment, $time_newcomment
Sortie :
@param bool $bool             Whether a comment flood is occurring. Default false.
@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

// Modifier la valeur avec le filtre 'comment_flood_filter'
add_filter('comment_flood_filter', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(false) {
    // Modifier la valeur
    return false;
}

Actualités

Chargement des actualités...