akcjaod 2.3.0
check_comment_flood
Opis — z kodu źródłowego
Fires immediately before a comment is marked approved.
Allows checking for comment flooding.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_author_ip | string | Comment author's IP address. |
$comment_author_email | string | Comment author's email. |
$comment_date_gmt | string | GMT date the comment was posted. |
$wp_error | bool | Whether to return a WP_Error object instead of executing wp_die() or die() if a comment flood is occurring. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'check_comment_flood', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'check_comment_flood', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii