akcjaod 2.9.0
spammed_comment
Opis — z kodu źródłowego
Fires immediately after a comment is marked as Spam.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_id | int | The comment ID. |
$comment | \WP_Comment | The comment marked as spam. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'spammed_comment', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'spammed_comment', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii