akcjaod 5.5.0
wp_check_comment_disallowed_list
Opis — z kodu źródłowego
Fires before the comment is tested for disallowed characters or words.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$author | string | Comment author. |
$email | string | Comment author's email. |
$url | string | Comment author's URL. |
$comment | string | Comment content. |
$user_ip | string | Comment author's IP address. |
$user_agent | string | Comment author's browser user agent. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_check_comment_disallowed_list', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_check_comment_disallowed_list', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}Popularne w tej kategorii