filtrod 2.1.0
comment_flood_filter
Opis — z kodu źródłowego
Filters the comment flood status.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$bool | bool | Whether a comment flood is occurring. Default false. |
$time_lastcomment | int | Timestamp of when the last comment was posted. |
$time_newcomment | int | Timestamp of when the new comment was posted. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_flood_filter', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_flood_filter', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii